ZBrushCentral

ZB3.5r3 Macro - Resize Doc

New Macro:…not able to get the ’ Resize Doc’ part to work.


  1. Resizes Doc 2048 x 2048
  2. Switch Color (to black)
  3. Flat Color> black> fill Layer
  4. Switch Color
  5. Create new layer

Could you show the text of the macro file?

I opened up the TXT file and changed the W & H to 2048, but not sure why it wont record it?

I think it’s because I did not press enter after setting the number.

 
//ZBRUSH MACRO - Recorded in ZBrush version 3.5
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the ëescí key.",
[IShowActions,0]
[IConfig,3.5]
[IUnPress,Document:Pro]
[ISet,Document:Width,1120]
[ISet,Document:Height,840]
[ISet,Document:Height,2048]
[IPress,Document:Resize]
[CanvasZoomSet,.5]
[IPress,Material:MatCap Red Wax]
[IPress,Material:Flat Color]
[IPress,Color:SwitchColor]
[IPress,Color:FillLayer]
[IPress,Color:SwitchColor]
[IPress,Layer:Create]
[IPress,Material:Flat Color]
[IPress,Material:MatCap Red Wax]
]
 
 

If you edit your text file as follows, it should work fine:

//ZBRUSH MACRO - Recorded in ZBrush version 3.5
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the Esc key.",
[IShowActions,0]
[IConfig,3.5]
[IUnPress,Document:Pro]
[ISet,Document:Width,2048]
[ISet,Document:Height,2048]
[IPress,Document:Resize]
[CanvasZoomSet,.5]
[IPress,Material:Flat Color]
[IPress,Color:SwitchColor]
[IPress,Color:FillLayer]
[IPress,Color:SwitchColor]
[IPress,Layer:Create]
[IPress,Material:MatCap Red Wax]
]

As you can see I simply changed the document width value. No idea why it didn’t record, but it was easy to fix. At the same time I also removed a few extraneous commands that are just a quirk of how the record feature works.

Never be afraid to edit your macro manually. It’s exactly the same as ZScript language, which is super simple.

After all these years I Finlay get around to checking out Macros.
Upon opening the TXT file I realized I have to experiment with ZScript Language!
Very cool.

Thank you.