Jump to content
Sign in to follow this  
doc

ython - creating local material parameters with python

Recommended Posts

So I have a geometry object, and on its material tab I can

go to the menu to the right of the "Material" parameter and

"Select and Create local material parameter".

In my case the parameter I'm interested in is called

"occlusion_cash".

how would I go about adding this parameter via with python

commands?

Thanks in advance

L

Share this post


Link to post
Share on other sites

Drag the parameter to the Python shell. It will give you something like:

hou.parmTuple('/obj/your_object1/occlusion_cash')

then just add .asCode()

hou.parmTuple('/obj/your_object1/occlusion_cash').asCode()

and you will get all the python code nescessary to create the paramter.

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  

×