nathanapffel Posted 21 hours ago Share Posted 21 hours ago In solaris I have a material library with materials that match the name property of each primitive mesh in the scene graph. I can use use the material assignment node to assign one material to one primative. This works and in the scene graph you can see the material binding. see attached image below: However I want to do this with a wrangle and assign all materals to matching prims. in a wrangle : string name = usd_name(0, s@primpath); string mats = "/materials/"+name; usd_addrelationshiptarget(0, s@primpath, "material:binding", mats); as shown in this tutorial in the scene graph it looks like it has assigned the material relationship but the materail doen't show up in the viewport. If there is an obvious mistake or if there is a beter way to assign all materials with the same names as prims in solaris please let me know. Thanks you for your attention. 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.