How to make a CAD model sculptable in ZBrush - ZBrush Live

 From:  amur (STEFAN)
8385.4 
Hi Pilou and all,

Metin once mentioned that he uses Styles in MoI for Polygroups in ZBrush, which works also very well.

I did a quick test and assigned random Styles in MoI with Petri's script:

script: /* Assign random styles to faces and edges */ var styles = moi.geometryDatabase.getObjectStyles(); var breps = moi.geometryDatabase.getObjects().getBReps(); for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); var edges = brep.getEdges(); for ( var j = 0; j < edges.length; ++j ) { edges.item(j).styleIndex = Math.floor(Math.random() * styles.length); } var faces = brep.getFaces(); for ( var j = 0; j < faces.length; ++j ) { faces.item(j).styleIndex = Math.floor(Math.random() * styles.length); } }

which you can see in picture 1.

Then in ZBrush under Preferences Import Keep Mats as Groups checked and in ZRemesher Keep Groups checked.

The quick test result you can see in Picture 2 and 3. For MoI export i used triangles only.

Regards
Stefan










Attachments: