Saya Posted October 10, 2019 Share Posted October 10, 2019 hi odforce, how comes `if(@materialnr=1,1,0)` does not work in a switch. I have 2 incoming nodes with an attribute named materialnr. I want to use switch to assign the right material on the right value. lets say material 1 and material 2 also, is this also possible in a pointwrangle? Cheers Quote Link to comment Share on other sites More sharing options...
LucaScheller Posted October 10, 2019 Share Posted October 10, 2019 (edited) Hi, you can do this with the material node: It's also possible with a wrangle by setting the "shop_materialpath" attribute based on the @materialnr variable. Using the material node is more convenient is this case though. Here's a file that showcases both methods: material_assignment_by_variable.hip Edited October 10, 2019 by LucaScheller Quote Link to comment Share on other sites More sharing options...
Saya Posted October 10, 2019 Author Share Posted October 10, 2019 aah just what i needed thanks Luca 1 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.