Python Take List

   2274   3   1
User Avatar
Member
230 posts
Joined: Oct. 2009
Offline
Is it possible, with given the parent take name to get a list of all take children?
User Avatar
Member
230 posts
Joined: Oct. 2009
Offline
I think this is the answer to my own question: http://www.sidefx.com/docs/houdini12.0/commands/takels [sidefx.com]

but unfortunately python version is not yet implemented.

What I want to do is easier for me in python but commands are missing. I could use hou.script(“takels”) but the result is not clean. Let me explain what I am after.

I am building a tool where I want the user to be able to have a parent take and then a list of children with different values on the tool. Then on the DA he will have to select the parent take and hit render.

Pseudocode:
parent = “mainTake”
children = hou.script(“takels -p mainTake”)
for each children create a geoRop and set take parameter, end forloop.
link all geoRops to a mergeRop

Any idea how to do that? The most tricky part for me is how to get children takes in an array.
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
http://forums.odforce.net/index.php?/topic/18962-python-take-list/#entry114328 [forums.odforce.net]
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
230 posts
Joined: Oct. 2009
Offline
thanks graham again, I was hoping for you to read this topic.
  • Quick Links