View Full Version : Cycling through SelectionTools
EDIT: Whups. Wrong Forum. Can this be moved to the Scripting Help Section. Sorry about that !
Hey,
trying to adapt Marcus's ToggleBrush Script to cycle through all of Zbrushs ever increasing Mask Selection Modes (Lasso, Rectangle, Curve etc.) with one hotkey. The way I see it (novice ...) I just need to add more cycles to the original Macro.
Now the question is why can't I store Selection Modes with the IGet,Brush:Item Info and what do I need to use instead ?
Thanks for reading.
Jens
Ok, badly phrased - let me try again:
"Item Info" will return me the currently active Brush. However the currently "active" (even if not currently used via ctrl) Mask Mode (Item Info 43-48) will only be revealed by Zbrush once Ctrl has been pressed.
Following the "Toggle Brush" macro Sample from Marcus I want to find out the currently "active" Mask Mode and then cycle through the brush infos upwards. So if Item 46 is active (once again - only once Ctrl is pressed) it would go 47,48 and then jump back to 43.
But how do I find the currently active Mask Mode via the "Item Info" without pressing CTRL first ?
marcus_civis
10-05-11, 07:31 AM
If you want to cycle through several brushes you don't really need to store the selection, you just declare a list of the brushes and then have an index variable which is incremented each time so the next in the list is chosen.
The attached macro shows the method. You could add any number of brushes to the list if you wanted, though I'm not sure how useful that would be. :)
There is a minor drawback: the first time you use the hotkey you'll get a message about the brush being 'selected as the active mask brush'. So long as you choose the 'skip' option this won't show again.
Download: 275611
Edit: I'm not sure it is possible to get the current Mask Brush selection through zscript (at least, I haven't found a way).
HTH,
Works flawlessly. So much for my Zscript Try-Out :)
You should put that in the Small & Useful ZScript Section ! Very handy.
By the way i sthere any script to switch between the last used and current brushes?
marcus_civis
10-06-11, 07:21 AM
By the way i sthere any script to switch between the last used and current brushes?
Not as such (it's not possible to record the current brush using zscript) but there is a 'favourite brush toggle' which you may find useful : Useful-small-ZScripts-and-Macros : Brush Toggle (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=871353&viewfull=1#post871353)
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.