Jump to content

How to save/share a material between projects


thinkinmonkey

Recommended Posts

Hi all,

I created a material (look the attachment) that is the union of two VEX trees: one for surface shader (Diffuse, Specular, Ambient with color and/or texture) and one for normal map (a VEX displacement).

It's a simple material that I used to study VEX/SHOP/SOP relationship.

Now I'd like to save the above material in a way to:

1. Have this material shared across all the Houdini projects, I mean, I press TAB in the SHOP Network of another project/scene and I can find it

2. Have the chance to update/modify the VEX trees of this material and having all the projects updated as well.

The last question related to above material's GUI.

I have two "toggle" parameter in the VEX tree of surface shader (see the Ambient section): one is for using Ambient texture instead of Ambient color, the second is for using a colorized version of Diffuse texture.

As you can imagine, the user can have only one of them, so I wanted to know how to toggle a parameter if the user select the other.

If I try to edit the interface, all this parameter are greyed, so I don't know if it's possible to toggle a parameter in the VEX tree.

Thanks in advance.

P.S. I know it's not the shader of century, feel free to use and to modify, but, please, share your changes! Thanks. :)

tkm_normalShader.hipnc

Link to comment
Share on other sites

Hi. You can save your material as digital asset, (put it in separate .otl file in $HOME/houdini10.0/otls for example) and then you can access this material in any project. You can also save this material to gallery.

For toggling parameters do the following: In parameter (in Parameter VOP node), that you want to disable (make gray) in "Disable when" field, just type : {useAmbient == 0}. In this case your parameter will disabled when "useAmbient" toggle will be 0. You can add several of those conditions.

Good Luck!

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