ZBrushCentral

Need Some Button Advice for Touch Screen PC`s

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 :slight_smile:

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!

you need the artdock dude

http://surfaceproartist.com/blog/2013/12/13/introducing-surface-pro-artist-artdock-20

Yes, I think Kaleid’s suggestion would be worth trying.

I can’t see a zscript solution working, as there is no way to simulate a ‘press and hold down’ of a button.

Thanks for the reply!

I`ve been using the Art Dock, and the RadialMenu which work but if you press and hold Alt, and then touch the screen with your hand it can ignore the button press.

I was just looking for a way to add those buttons into ZBrush`s own UI.

I have the buttons working, but then activate on release and thats all.