hey guys. if any of you can offer any help here that would be awesome. knocked up this quick script. patched together from simple macro recording etc :
[code]//ZBRUSH MACRO - Recorded in ZBrush version 4.2
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the
Replies
anyway I've only mucked about for a bit but I think the problem is that on larger subtool lists the original subtool is no longer in the range of the scrollbar.
Edit:
So I opted to manipulate the scrollbar because that seems to be the accepted way to solve this problem. Now it'll toggle visibility on the current subtool, and turn off others you hover on
[code]//ZBRUSH MACRO - Recorded in ZBrush version 4.2
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the
i absolutely concede ignorance here but. man. that feels like some pretty clunky shit if it's required that the scrollbar be in a given position to work
anyway. as is this seems functional. thanks so much for your help a. object management in zb is still fucking stupid so this will be huge workflow boost
man this language is so bonkers I can hardly believe it haha
but. grr. such does not seem to be the case
lemme know if you have any problems yo!
[If, SubToolTitle_1 == SubToolTitle_0
,
//do this
,
//else. do this
]
I wish it'd compare the string for you, it's pretty weird for a scripting language haha
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the
you press the visibility button twice on currentSubtools? what's the benefit to this rather than having a toggle?
and you use the popup again instead of a loop? is this just for cleanliness?
I really don't know much about Zscript so I figured I'd ask so I know next time I want to try it out
it would need a more elegant write up with a bunch of checks in place to overcome its failings ( 1 being if the eye of your current sub is off. won't work. 2 the most significant. fails with subtools of same name ) and yours is likely very much closer to that. but i'm quite reluctant to sink any further time into this scripting language. once you see you have to programmatically shift the scrollbar to have access to other subtools ( ?!? ). well. fuck off right