Jump to content
newbee

setting the dop io preset

Recommended Posts

in DOP IO node

i am trying to set the preset as PYRO using

x=hou.node('/obj/geo1/dopio1')

y=x.parm("presets")

y.set("pyro")

 

but this doesn't set the preset really.. any ideas?

Share this post


Link to post
Share on other sites

That 'presets' parameter is calling a callback python script.

image.png.4682d699a1154b4587a728854d2edfc7.png

You could try this:

theGeo = hou.node('/obj/geo1/dopio1')

# Keyword argument needed by the internal invokePresetMenu function
myArgs = {'node': theGeo, 'script_value0': 'pyro'}

# The internal python function called by the presets parameter.
theGeo.hm().invokePresetMenu(myArgs)

 

Edited by galagast
  • Like 1

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

×