I’m experimenting with a scripted material plugin, and I want to expose the material array (tab) of material.
Exposing Mtl1 and Mtl2 works fine. But when it comes to the #materialtab, I can’t figure out how to expose it in the material editor. I’m mainly concerned for the node knobs, in the material editor. As an alternative, I was wondering if there is a way to dynamically add parameters in the parameters block so I can treat them as “single” materials? I can dynamically update the UI so, that’ would be fine.
plugin material TestMtl name:"Test Material" classID:#(695421,446582) extends:Standard replaceUI:true version:1 ( parameters main rollout:properties_ro ( Mtl1 type:#material ui:mtl1_btn Mtl2 type:#material ui:mtl2_btn Mtls type:#materialTab tabSizeVariable:true ) rollout properties_ro "Properties" ( materialbutton mtl1_btn "Render material" width:300 materialbutton mtl2_btn "Render material" width:300 ) )