ZBrushCentral

Material Icon

hey guys , i`m trying to adress the little preview icon that materials have but i cant seem to find how to do it

tried things like
[IGet, Material:Preview]
[IGet, Material:Icon]

but nothing seems to work

in the end i`d like to use this icon as a buttonimage in a noteswitch

http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/command-reference/#NoteIButton

thanks for the reply but i think you misread the question, I want to retrieve the icon from a material first and thats what the question is mostly about

You may need to save and retrieve the data, which is displayed?? Or do you want it to be an interactive preview?
There may be more than one way to do this. If you write a plugin, it could use bits of the interface easily.
Know what must be done for it to work. I’m sure you’ve been through the reference docs.
http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/command-reference/

Looks like you are going to need button path(name) or ID…

hmm okay i knew it wasnt going to be that easy, i was trying to recreate something like the actual materialbrowser when you press B but instead have those materials be switchbuttons inside a note
thanks for helping out , i`m going to try some more stuff and see what works

i`m only using zscripting btw

http://www.zbrushcentral.com/showthread.php?179440-interface-organisation&p=1033633&viewfull=1#post1033633

If you use the material file name (and path) I think it should work. ZBrush will just read the embedded image.

ah yes marcus that seems to work! thank you very much for the help guys
ill make sure that i share the script im working on once its done :slight_smile: