Michael Firmin

michaelf

About Me

Connect

LOCATION
Vancouver, Canada
ウェブサイト

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Get selected channel in graph with Python 2023年11月23日11:56

Hi, I just tried that snippet and it seems to work fine for me, and I'm able to get the name of the parm with
parm.name()
.

Do you now which part is failing? Is the keyframes.keys() dictionary empty?

Just to double check, you're trying to get the name of a channel for which you've selected keys in the graph itself, right? If it's just selected in the channel list you can instead do something like:

import hou
channel_list = hou.playbar.channelList()
for parm in channel_list.parms():
    if channel_list.isSelected(parm):
        parm.name()

I keep getting errors with Houdini 20 APEX Scene animate 2023年11月9日12:59

I've managed to reproduce this - thanks for the report!

From what I can tell, it only seems to happen when you switch Desktops while the animate state is active. Does that match what you're seeing?