Thanks Again Marcus.
Here’s the Code as it stands, still trying to get the Subtool to land where it was prior to script, for the moment I just tell it to go back to the top of the subtool stack.
//ZBRUSH MACRO - Recorded in ZBrush version 4.73
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.73]
[IUnPress,Render:Render Properties:Shadows]
[IUnPress,Render:Render Properties:AOcclusion]
[ISet,Render:Render Properties:3D Posterize,180]
[ISet,Render:Render Properties:3D Shading,0]
[IPress,Transform: Pf]
[IModSet,Transform: Pf,2]
[SubToolSelect, 0]
[IPress,Tool:SubTool:SelectDown]
[Loop,10,
[VarSet,id,[IGet,Tool:NanoMesh:m.Index]]//store current index
[ISet,Tool:NanoMesh:m.Index,0]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[IPress,Tool:NanoMesh:m.Mesh Material]
[IPress,Tool:NanoMesh:m.>>]
[ISet,Tool:NanoMesh:m.Index,id]
[IPress,Tool:SubTool:SelectDown]
]//end of Loop
[SubToolSelect, 0]
[IPress,Render:BPR RenderPass:Render Best Preview]]
2 more questions can I do a loop within a loop as you can see above I have a lot of repeating code but wasnt sure if I could put loop in there since it was already in the middle of a loop.
Also wanted to create a randomizer for the Random Seed of a Index of a Nanomesh but tried a dozen variations to get it to work but no luck
[ISet,Tool:NanoMesh:m.Random Seed]
Thanks in Advance