Masoud Posted January 17, 2020 Share Posted January 17, 2020 Hello; I would like to assign one material, to several objects, but changing Texture/Color based on an attribute (as an integer ID), so I add an assemble SOP to generate IDs, and a switch node in the material network, but it doesn't works. How can I fix it? Thanks for helping. Muti_Color_01.hip Quote Link to comment Share on other sites More sharing options...
anim Posted January 17, 2020 Share Posted January 17, 2020 your name attribute is string, not int so instead of Assemble SOP use Connectivity SOP, to create primitive int attribute (by default named class), then bind that class attribute in your shader as int 1 Quote Link to comment Share on other sites More sharing options...
Masoud Posted January 18, 2020 Author Share Posted January 18, 2020 15 hours ago, anim said: your name attribute is string, not int so instead of Assemble SOP use Connectivity SOP, to create primitive int attribute (by default named class), then bind that class attribute in your shader as int Thanks. 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.