ZBrushCentral

Simulating Sticky:Control and Control+Shift

AS you will probably understand from the title, I want to create a mask with CanvasClick/Stroke but I can only mask with Control (sticky) pressed.
Is there a zscriptcommand to IPress (and later: IUnPress] this Control-key, so it is not combined (as in KeyPress) with an abc…-key, but just by itself, and stays pressed until unprees when the maskingactivity is done.

THe same question for Control+Shift, needed for hiding/showing.
If this is possible I’ll be able to offer a nice new plugin.

Greetings, EddyL

Eddy,

Apologies for the delay in replying. You can wrap the [IKeyPress command around other commands to simulate particular actions. For Shift, you can use 256, for Ctrl use 512. So for example, this code will simulate a Shift+Ctrl+drag on the canvas:


[IKeyPress,256+512,[CanvasClick,200,200,400,400]]

I’m afraid I can’t remember whether this will work for CanvasStroke commands - you’ll have to experiment.

Thanks Marcus; a very usefull answer!

EddyL