Getting linked channels in python code

   4355   3   2
User Avatar
Member
3 posts
Joined: Oct. 2013
Offline
I'm trying to get the list of channels linked to a parameter in some python code in my digital asset.

In other words: I have a parameter on a digital asset. There are nodes in the asset whose channels are linked to this parameter. I can get the parameter just fine in my python code, but I want to get the list of channels which are linked to it.

Any thoughts?
User Avatar
Member
696 posts
Joined: March 2009
Offline
You might have to loop through all the parameters you wan to check for and regex search their expression for the name of the parameter they could be linked to, know what I'm saying?
Might be painfully slow in a big scene.

Thant's all I could think of before lunch.

cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
3 posts
Joined: Oct. 2013
Offline
Thanks a ton rafaels. I was really hoping to avoid something that cumbersome, but at least it's a start.

Appreciate the help.
User Avatar
Member
1907 posts
Joined: Nov. 2006
Offline
If you have the ability to use the inlinecpp things it's quite easy to write a function to do this. However, if not, there's not much you can do other than brute forcing it like rafaels suggested.
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links