Marcus Thanks for the ChooseBrush macro you posted a while back.
I am trying to make a change to it and wondering if it is possible?
I have been looking at Marcus’s macro ChooseBrush2.txt
This macro will remember the last brush size you used, from a custom palette of brushes, as long as you run the macro first before selecting a brush from the palette.
If you want to use this by poping up your palette, then this macro is a one key solution, it pops up your palette, you then select your brush,and will then remember any size setting you apply to the brush.
If you want to have your palette in the tray, always on screen, then you need to run the macro and then, select your brush.
I was wondering if I could incoperate into this macro, with another macro command that selects a specific brush.
So for example if I have four brushes that I use a lot and want them to be at their selected size as I change back and forth between them, could I have a macro to first do what Marcus’s macro does and then add the appropriate command to select a particular brush.
So that I would in my case have four macros one for each brush, that would select a brush and add the last size set feature of Marcus’s macro, for that brush.
I tried to add this into the end [IPress,Brush:Standard] but it did not work, see below. Thanks.
//ZBRUSH MACRO by marcus_civis - save file to ZStartup/Macros/Misc folder
[IConfig,4.8]
[VarDef,curBrush,[IGet,Brush:Item Info]]
[If,[MemGetSize,Mem_BrushDrawS],[MVarDef,Mem_BrushDrawS,200,0]]
[Sleep,0.0001,
[If,((result & 2 == 2)||(result & 8 == 8)),
[If,curBrush != [IGet,Brush:Item Info],
[VarSet,curBrush,[IGet,Brush:Item Info]]
[If,[MVarGet,Mem_BrushDrawS,curBrush]>0,
[ISet,Draw:Draw Size,[MVarGet,Mem_BrushDrawS,curBrush]]
]
]
]
[SleepAgain]
,10,result]
[IButton,???,“Pick a brush and store/restore Draw Size”,
[VarSet,curBrush,[IGet,Brush:Item Info]]
[MVarSet,Mem_BrushDrawS,curBrush,[IGet,Draw:Draw Size]]
[VarSet,myMenu,“MY BRUSHES”]//change to custom palette name
[If,[IExists,myMenu],[IShow,myMenu][IPress,Brush:Standard]]
,0.5]