Hi there,
I just started to play with ZScript(already have programming experience), and i found that some very useful funcions just not exist…
Subtool acces improvements
- get subtool Name
- rename subtool
- or atleast set unique ID to duplicated subtools
- ideally
Multi-Dimensional arrays
all i found on that was this forum post from 2004 year… and no, that not working for some reason.
- possibility to assign array as part of another array.
Interface elements
- maybe some additional flag on functions like iSet/Ipress/iUnpress, so they wont trigger same action on element used.
For example, i made two sliders that should have same values if Option triggered. But if i simply write something like this in press action of slider:
[ISet,Zplugin:TileBuddy:Columns,[IGet,Zplugin:TileBuddy:Rows]]
[ISet,Zplugin:TileBuddy:Rows,[IGet,Zplugin:TileBuddy:Columns]]
i’ll get infinite cycle and Zbrush will crash, so i have to make cycle prevention mechanism.
Or i need selection toggle element (for example 4 iSwitch, and just one should be active at same time), i cant just say: “if you was pressed, unpress all other”, why? i need atleast one to be pressed, so i mapped IPress action to unpress section of a toggle and now code looks like this:
[ISwitch, "Zplugin:TileBuddy:BR", 0, "Bottom Right Corner", [IUnpress,Zplugin:TileBuddy:UL][IUnpress,Zplugin:TileBuddy:UR][IUnpress,Zplugin:TileBuddy:BL],
[if, ([IGet, Zplugin:TileBuddy:UL]==0)&&([IGet, Zplugin:TileBuddy:UR]==0)&&([IGet, Zplugin:TileBuddy:BL]==0),[Ipress,Zplugin:TileBuddy:BR]],
0,20]
From here i can propound to make new element with multiple switch elements, or new key to ISwitch to group them.
I’m not a pro at coding, and most things i did looks like hacks, but i dont see another way. And i see no way to do some things without improved access to subtools