newbee Posted December 1, 2017 Share Posted December 1, 2017 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? Quote Link to comment Share on other sites More sharing options...
galagast Posted December 1, 2017 Share Posted December 1, 2017 (edited) That 'presets' parameter is calling a callback python script. 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 December 1, 2017 by galagast 2 Quote Link to comment Share on other sites More sharing options...
newbee Posted December 4, 2017 Author Share Posted December 4, 2017 gr8.. works gr8 ! .. thanks Jeff Quote Link to comment Share on other sites More sharing options...
eunchae Posted March 2, 2020 Share Posted March 2, 2020 On 12/1/2017 at 5:35 PM, galagast said: That 'presets' parameter is calling a callback python script. 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.