ZBrushCentral

Adding focal length knobs on interface

I would like to make 3 extra knobs for the focal lengths that work exactly like the ones found under draw menu (35, 50, 85) but I want for the amounts of 110, 180, 220.

I tried myself for around 4 hours to create such knobs using zscript but I guess I’m useless as a coder. I really can only do artistic stuff.

image

It can be done, with some limitations. The switches will not update if you change the focal length using the default switches or the slider. This is because zscript can’t monitor the interface, so can’t react to changes. So you will need to remember to press the relevant switch again if needed and keep an eye on the focal length slider. Anyway, the attached code shows you how it’s done. Most of the code is to do with keeping the switch states responsive when the plugin is reloaded (without it there’s an annoying thing where you have to press the switch twice) and making them work together (so pressing a switch turns the others off).

HTH,
Marcus

FocalLengthSwitches.txt (2.7 KB)