Jump to content
sanostol

Python:: How to apply a stored preset to a node with python

Recommended Posts

Can you guys give an example of applying preset using command for (example - let take a null and we have a preset for it. So how we can apply using python)

Share this post


Link to post
Share on other sites
op_path = '/obj/geo1/null1'
preset_name = 'Some Preset'
cmd = 'oppresetload %s "%s"' % (op_path, preset_name)
hou.hscript(cmd)

 

  • Thanks 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

×