Using the function selectedKeyframes() from the hou.ChannelGraph class [www.sidefx.com] I try to get a dictionary of (hou.Parm, keyframes) which are currently selected in the Channel graph and change the values.
If you select one Geometry Object, the selectedKeyframes() will work, if select more than one, then the function generates an error.
Example:
>>> hou.ui.paneTabOfType(hou.paneTabType.ChannelEditor).graph().selectedKeyframes() Traceback (most recent call last): File "<console>", line 1, in <module> File "S:/HOUDIN~1.449/houdini/python2.7libs\hou.py", line 39912, in __repr__ def __repr__(*args): return _hou.Parm___repr__(*args) ObjectWasDeleted: Attempt to access an object that no longer exists in Houdini.
If you select a area on the timeline and using the function selectedKeyframes() from the hou.playbar module [www.sidefx.com] get the dictionary of (hou.Parm, keyframes), result will be empty.
Example:
>>> hou.playbar.selectedKeyframes() {}
In both cases, the function does not work as expected.
Houdini 16.5.449
–
sorry for the translation