Hi all,
I`m looking for some help and advice about creating some simple buttons in ZScript.
Firstly I have only been using it today so I am a super noob, so be gentle
I essentially want to add three buttons to my UI which I can hold to replicate holding the Control, Shift and Alt keys. This will be for use with tablet PC`s, like the Surface Pro, where you may not have access to a keyboard or want to use one.
I have RadialMenu which is a good on screen keyboard tool, but it has its issues so was looking for something more hard coded into ZBrush.
The aim is to create a Surface Pro 3 friendly UI to share with the community…
Below is what I have so far, which works but the button press is a just a quick click where I want to be able to hold one which I work.
[ISubPalette,"ZPlugin:Buttons"]
[IButton
,"ZPlugin:Buttons:CTRL","CTRL",[IKeyPress, 512, [IClick, 512]], 0, 200]
[IButton
,"ZPlugin:Buttons:ALT","ALT",[IKeyPress, ALT, [IClick, 1024]], 0, 200]
[IButton
,"ZPlugin:Buttons:SHIFT","SHIFT",[IKeyPress, SHIFT, [IClick, 256]], 0, 200]
Thanks in advance for any advice!