Found a bug in function selectedKeyframes()

   1704   3   1
User Avatar
Member
2 posts
Joined: Oct. 2017
Offline
Found a bug in the Python API, in function selectedKeyframes() from the hou.ChannelGraph class [www.sidefx.com] and hou.playbar module [www.sidefx.com]


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

Attachments:
image_2018-05-07_18-38-43.png (2.1 KB)
image_2018-05-07_18-39-16.png (10.7 KB)

User Avatar
Staff
476 posts
Joined: April 2014
Offline
I was able to reproduce both issues. I'll fix it as quick as possible.
User Avatar
Staff
476 posts
Joined: April 2014
Offline
Next 16.5 build has a fix for both issues.
Please tell me if it works properly.
User Avatar
Member
2 posts
Joined: Oct. 2017
Offline
Thank you, everything works as it should
  • Quick Links