Jump to content

ython - creating local material parameters with python


doc

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

Link to comment
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.

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...