ZBrushCentral

Question: calling Color picker from zscript?

Can I call Color Picker(like when pusing the button “Color:Main Color”)?

I would like to achive something like this:

//ZBRUSH MACRO - Recorded in ZBrush version 2022
[IButton,???,"Pick color and set the PF color",
	[IShowActions,0]
	[IConfig,2022]
	[VarSet, picked_Color, 0]
	["Function which can call color picker, does it exist?", picked_Color]
	[ISet,Preferences:Draw:Pf Color, picked_Color]
]

Is there any reason why you can’t allow the user to pick a color before running your script? It’s not possible to call the color picker from zscript.

1 Like

Thank you for reply, and I understood it is not possible. :thinking:

There is no critical reason not to pick a color before running the script. I would liked to achieve “one button action”.
If I can not call Color Picker, I just need to write a instruction manual one more line, “Before using this script, please pick a color”.

It occurs to me that one solution would be to use
[IPress,Color:SysPalette]

which would bring up the system color picker.

1 Like

Thank you!
I don’t need exact ZBrush Color Picker.
This is what I need.

1 Like