Jump to content
Sign in to follow this  
pelos

how to generate params from a wrangler with code

Recommended Posts

i am creating a attribute wrangler and will create 2 params,  from the UI i can click that little icon and will create it for me, super easy. I did try to to grab the param and press "push button"

h=hou.node('/obj/box1_Grooming/pointwrangle_width')
ex=h.parm("exportlist")
hou.Parm exportlist in /obj/box1_Grooming/pointwrangle_width>
ex.pressButton()

but nothing happen =(   i inspect the button via "edit parameter interface" to see if there was a code or a callback attach to it,but didnt find anything... =(

 

how could i create those params?

generate_params.png

Share this post


Link to post
Share on other sites

That button is running this Python script

 

import vexpressionmenu 

node = kwargs['node'] 
parmname = 'snippet' 

vexpressionmenu.createSpareParmsFromChCalls(node, parmname)

 

Share this post


Link to post
Share on other sites

just needed to change the node and vuala!  super thanks!

Edited by pelos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×