PDA

View Full Version : Button on Palette



cameyo
05-24-05, 05:44 AM
Do you know how to put some buttons on a palette?
Like the PowerOf2 script from Aurick (without source, of course), who put some button within Texture palette.
Thanks in advance.

cameyo

marcus_civis
05-24-05, 05:50 AM
Hello cameyo? Is it you? Good to see you here! I hope you have returned! :)

You use the ISubpalette command, just like you would for a plugin. You can even place a button over an existing one this way, as TVeyes does in one of his TinyToolz.


[ISubPalette,Texture:cameyo]

[IButton,Texture:cameyo:abutton,"What this button does",
//commands...
]

[Edit: you place the zsc file in the StartUp\ZPlugs folder.

TVeyes
05-24-05, 05:51 AM
Hi Cameyo,

Take a look at this thread. ZScripting new controls into ZBrush interface? (http://www.zbrushcentral.com/zbc/showthread.php?t=25171)

Just use the IsubPalette command to create a subpalette within an existing zbrush palette.

cameyo
05-24-05, 06:16 AM
Thanks my friends!!!
I'm very happy...:D to hear you.

I make a wrong question...
I wish to known how to put a button not on a palette, but within a popup, like the CropAndFill button within the Texture popup

Thanks again to MarcusCivis and TVeyes

cameyo

marcus_civis
05-24-05, 08:48 AM
Ah, I don't know how to do that, or even if it is possible. :( TVeyes?...

TVeyes
05-24-05, 10:09 AM
I don't think it is currently possible. I am not sure but the IDialog command might have been intended for such a thing, unforunately it is not functional in Zbrush 2.

Does the Power of 2 zplugin insert buttons anywhere else but the texture palette? I could not find any.

cameyo
05-24-05, 10:47 PM
I'm sorry, the plugin of Aurick do not insert any button in popup, it's a my error...as always :D

Thanks.

cameyo

aurick
05-24-05, 11:49 PM
Yes, PowerOf2 only inserts those six buttons into the Texture palette itself. I don't believe that it is possible to insert buttons into the thumbnail popups.

Frenchy Pilou
05-25-05, 03:26 AM
Pilou :)