Hi All,
Is there any way I can promote a parameter from vopnode with python ?. I was trying some other solution like find the parm type and all those stuff but nothing come good . And I didnt find any really helpful doc from houdini also maybe I didnt do a good search . So if any one has a idea how I can promote a parameter then it will be really helpful.
Thanks
Python Promote Parameter
6420 5 2- Achayan
- Member
- 54 posts
- Joined: March 2008
- Offline
- Achayan
- Member
- 54 posts
- Joined: March 2008
- Offline
- Achayan
- Member
- 54 posts
- Joined: March 2008
- Offline
- JordanWalsh
- Member
- 143 posts
- Joined: Feb. 2012
- Offline
- JordanWalsh
- Member
- 143 posts
- Joined: Feb. 2012
- Offline
I just found a bit of info here about doing it…
http://houdinitips.posterous.com/add-a-spare-parameter-to-a-node-using-python [houdinitips.posterous.com]
Looks good, but how can I emulate the way it works when you ‘Edit Parameter Interface’ and create a parameter form the “From Nodes” tab, moving the expression/keyframes from the original parm to the new one?
I know I can get the value, or the expression or the keyframes of the parm with different functions, but is there a way to just push whatever is on the parm to the new parm?
http://houdinitips.posterous.com/add-a-spare-parameter-to-a-node-using-python [houdinitips.posterous.com]
Looks good, but how can I emulate the way it works when you ‘Edit Parameter Interface’ and create a parameter form the “From Nodes” tab, moving the expression/keyframes from the original parm to the new one?
I know I can get the value, or the expression or the keyframes of the parm with different functions, but is there a way to just push whatever is on the parm to the new parm?
- goldleaf
- Staff
- 4199 posts
- Joined: Sept. 2007
- Offline
For anyone who finds this thread while trying to promote VOP parms, here's a solution: insertParmGeneratorsForAllInputs(). This is how you use it on a Color Mix, as an example:
hou.node(“/obj/geo1/primitivevop1/colormix1”).insertParmGeneratorsForAllInputs(hou.vopParmGenType.Parameter,True)
This is the same as RMB > Create Input Parameters
hou.node(“/obj/geo1/primitivevop1/colormix1”).insertParmGeneratorsForAllInputs(hou.vopParmGenType.Parameter,True)
This is the same as RMB > Create Input Parameters
I'm o.d.d.
-
- Quick Links