Code:
// Plugin button for Smart Proportional Subdivision - adapted by Svengali, Sept. 05
// Originally, a marvelous tool for a controlled subdivide conceived and posted by Marsyas...
// presented in the ZBCentral thread at: http://www.zbrushcentral.com/zbc/showthread.php?t=26639
[ISubPalette,TOOL,0,,0,6,0,0]
[IButton,"TOOL:Smart Div","Smart proportional subdivision of model",
[If,[IGet,TRANSFORM:EDIT OBJECT] == 0,
[Note,"No active PolyMesh...",,1]
[IPress,ZSCRIPT:Previous]
[Exit]
]
[If, [IExists,TOOL:Geometry:Reconstruct Subdiv] == 0,
[Note,"Must be a PolyMesh...",,1]
[IPress,ZSCRIPT:Previous]
[Exit]
, // else
[ISet,Tool:Geometry:SDiv,[IGetMax,Tool:Geometry:SDiv]] // needs to be at highest subD
[IUnPress,Tool:Geometry:Smt]
[IPress,Tool:Geometry:Divide]
[IPress,Tool:Geometry:Lower Res]
[IPress,Tool:Geometry:Cage]
[IPress,Tool:Geometry:Del Higher]
[IPress,Tool:Geometry:Smt]
[IPress,Tool:Geometry:Divide]
[IPress,ZSCRIPT:Previous]
]
,,72,,,20
]
To install, simply unzip SmartDiv.Zip into the ZStartup/ZPlugs folder. The next time you startup ZBrush2 you'll find a button called