Starting here: https://www.sidefx.com/docs/maya/_maya__material.html [www.sidefx.com] I have spent way too many hours pulling my hair over some thing that seems so straightforward. I also went through several threads in this forum already.
I figured out how to make Houdini engine do the following in Maya:
- Create a new material with user-picked texture - shop_materialpath
- Assign any in-maya-existing material to HDA geo - maya_shading_group
These things work ok when running isolated once. But I fail with the following:
- After creating a new material, assigning another existing Material does not work
- After creating a new material, Maya/Houdini creates that again with every cook. It takes a long time and is not necessary. I could not figure out how to tell Maya to only do that once.
A switch works but for learning reasons I don't want that. Also, a user would expect a button, not a toggle or dropdown. I tried a button with python callback that force cooks the material branch. I even tried a callback that flips the switch, runs the material, then flips the switch back. However Maya only "syncs" afterwards.
I guess I am doing a few things wrong. Here is my example file. How do you guys create/assign Materials with textures within Maya? I also recorded a video to explain things better.
Video on youtube: https://youtu.be/YTtwBLNhyEU [youtu.be]
Image Not Found
Maya 2018.6
Houdini 18.5.408
Houdini Engine 3.5 (API: 1)