thinkinmonkey Posted July 18, 2010 Share Posted July 18, 2010 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 Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted July 19, 2010 Share Posted July 19, 2010 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! Quote Link to comment Share on other sites More sharing options...
thinkinmonkey Posted July 19, 2010 Author Share Posted July 19, 2010 Stalkerx, thanks for your suggestion! But before to do what you say, I had to copy/paste all the VEX trees in their respective SHOP counterparts in order to save the Material as a digital asset and to have the chance to edit the interface for the "toggles" game. Anyway, thanks. tkm_normalShader2.hipnc 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.