Eyeon:Script/Reference/Applications/Fusion/Classes/Operator/GetKeyFrames
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | Operator
Contents |
Tool : GetKeyFrames
Summary
This function returns a sorted table of all keyframe times for this specific tool.
Arguments
GetKeyFrames()
No arguments.
Returns
Returns a table containing a list of keyframe times, in order, for the tool only. Any animation splines or modifiers attached to the tool's inputs are not considered.
Note that most tools will return only the start and end of their valid region. Certain types of tools and modifiers such as BezierSplines may return a longer list of keyframes.
Requirements
- eyeonScript 5.0
- Fusion 5.0
Examples
allkf = tool:GetKeyFrames() inps = tool:GetInputList() for i,inp in inps do -- append attached animation keyframes too local kf = inp:GetKeyFrames() if kd then for j,t in kf do table.insert(allkf, t) end end end table.sort(allkf)
See Also
Input:GetKeyFrames(), Composition:GetPrevKeyTime(), Composition:GetNextKeyTime()
Tips for GetKeyFrames (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/Operator/GetKeyFrames