//ZBRUSH MACRO - Recorded in ZBrush version 2018 [IButton,???,"Create displacement and normal maps for all subtools", [IShowActions,0] [IConfig,2018] [VarSet,activST,[SubToolGetActiveIndex]] [Loop,[SubToolGetCount], [SubToolSelect,[Var,n]] [If,[IExists,Tool:Displacement Map:Create DispMap], [If,[IsEnabled,Tool:Displacement Map:Create DispMap], [If,[IGetMax,Tool:Geometry:SDiv]>1, [If,[IGet,Tool:Geometry:SDiv]==[IGetMax,Tool:Geometry:SDiv], [ISet,Tool:Geometry:SDiv,1] ] [IPress,Tool:Displacement Map:Create DispMap] [IPress,Tool:Normal Map:Create NormalMap] ] ] ] ,n] [SubToolSelect,activST] ]