Python Take List
2277 3 1- csp
- Member
- 230 posts
- Joined: Oct. 2009
- Offline
- csp
- 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.
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.
- graham
- Member
- 1908 posts
- Joined: Nov. 2006
- Offline
- csp
- Member
- 230 posts
- Joined: Oct. 2009
- Offline
-
- Quick Links