Need help with Scripted Material Plugin
i would like to ask those who know something about scripted plugins for help.
I'm trying to create my own version of material that is based on Standard mat, just to add few extra buttons and so on. I've got most of it done, i just cannot figure it out how to create custom mapbutton.
Map button where i could drag&drop texture file and that file would be placed in, let's diffuse channel. Basically classic mapbutton behavior but in my own rollout.
Is there any chance someone could help me with simple script example?
Some additional details that may help: scripted plugin of mine won't replace UI of standard mat, just adds 1 rollout.
Edit: Plus, i would like to also ask, is there a way to open, let's say DiffuseColor rollout? Basically same as if user would click on diffuse color button in maps rollout but i would like to get there by pressing button on my rollout