Methods
selectedKeyframes()
→ dictionary of (/hom/hou/hou.Parm, tuple of hou.BaseKeyframe) pairs
Returns a dictionary of (hou.Parm, keyframes) which are currently selected in the graph.
For example, to scale the selected key values by 2:
channel_editor = hou.ui.paneTabOfType(hou.paneTabType.ChannelEditor) keyframes = channel_editor.graph().selectedKeyframes() for parm in keyframes.keys(): for key in keyframes[parm]: key.setValue(2 * key.value()) parm.setKeyframe(key)
selection()
→ tuple
of /hom/hou/hou.ChannelGraphSelection
Return a copy of the current channel graph selection.
setSelection(
tupleof [hou.ChannelGraphSelection])
Set the current channel graph selection.