Methods ¶
selectedKeyframes()
  → dictionary mapping instances of hou.Parm to tuples of hou.BaseKeyframe
        
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 hou.ChannelGraphSelection
        
Return a copy of the current channel graph selection.
setSelection(chan_graph_selections)
        
Set the current channel graph selection to the given sequence of hou.ChannelGraphSelection objects.