Jump to content

setting the dop io preset


newbee

Recommended Posts

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 2
Link to comment
Share on other sites

  • 2 years later...
On 12/1/2017 at 5:35 PM, galagast said:

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)

 

Hi.

I did as you told me, but I got an error

error - 'NoneType' object has no attribute 'hdaModule"

 

I created a new edit in the shelf tool and entered in, but it doesn't run. 

Why is that? 

 

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...