ZBrushCentral

get window id, cant reconize the id,why !!

hai!! i,m a new user!
i have done the test of script for

[IGet, preference:Utilities:view Window id ] !!
it can reconize all the id of every slider or button except :

the Id from SubPalette, example : Id from Tool:Deformation:size slider! the id number is maybe 1,2 or else ! but on using [messageok] command, why it can’t reconize that id! And if there have a solution, how to handle that !! anyone can help for this problem,please!

Interface items can only be referenced by their Window ID if they exist in the user interface at all times. For example, the Tool > Deformation > Size slider only exists when a 3D tool is selected. As far as I can remember it is only the Tool palette and the Tool / Alpha / Stroke / Material / Texture floating palettes that contain “Ghost” Window IDs.

You can get around it through some script code checks. Take a look at the TVT_XYZshortcut.txt code found >> Here <<. It shows a way to test if a 3D tool is selected and work out which deformation slider the cursor is over.

I cannot understand why there has to be “Ghost” Window IDs as the [IExists,…] command should be enough. But I am sure there is a good reason :slight_smile: