Almantas Vasiliauskas
Almantas
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Get selected channel in graph with Python Nov. 23, 2023, 12:30 p.m.
Hi, michaelf,
correct, I am getting just an empty dictionary in keyframes variable "dict_keys()". Still have no idea, why it doesn't work for me. Your suggestion to use hou.playbar.channelList() works great for my case. Many thanks!!!
correct, I am getting just an empty dictionary in keyframes variable "dict_keys()". Still have no idea, why it doesn't work for me. Your suggestion to use hou.playbar.channelList() works great for my case. Many thanks!!!
Get selected channel in graph with Python Nov. 21, 2023, 11:42 a.m.
Hi, everyone!
after a long day of struggling I have reached a wall and looking for help. I need to get a name of parm of selected channel with Python, but had no luck with that.
Maybe someone is familiar with ChannelGraph [www.sidefx.com] class?
Strangely a simple example with keyframes in Houdini's help, doesn't work either:
Thanks!
after a long day of struggling I have reached a wall and looking for help. I need to get a name of parm of selected channel with Python, but had no luck with that.
Maybe someone is familiar with ChannelGraph [www.sidefx.com] class?
Strangely a simple example with keyframes in Houdini's help, doesn't work either:
import hou 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)
Thanks!