What if there is around 40 - 50 objects. And I have to assign different material from the MDL Library for each objects. I will have two separate arrays with object id and material name . How to add them in a ‘for’ loop to do the process? Maybe show example of adding mdl materials to three different cubes in the usd file using a loop to retrieve each object from usd stage.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How To Add Existing Material To An Object In Existing USD File Thru Code | 3 | 1300 | January 5, 2023 | |
| How To Assign MDL Materials To Multiple Prims Thru Python | 2 | 1113 | February 2, 2023 | |
| How To Open Existing Usd File and Edit The Design | 2 | 946 | January 4, 2023 | |
| Need Help with Textured MDL Materials through Omniverse Connector | 4 | 2036 | March 11, 2022 | |
| Assing unique materials to different obejcts | 0 | 332 | May 16, 2023 | |
| Can one USD material refer to two MDL files? | 4 | 741 | May 1, 2023 | |
| Create array of materials from imported usdz | 0 | 557 | March 13, 2023 | |
| How to add textures to a mesh with pxr (usd-core) library | 1 | 223 | November 27, 2024 | |
| How to get links for material shaders (.mdl) and usd assests (.usd) | 0 | 165 | May 31, 2024 | |
| Questions about material handling | 6 | 1149 | March 7, 2023 |