ZBrushCentral

Group Split Error Checking

Anyone know how to get polygroup info from a mesh? Or keep an eye out for group split errors (when there are no groups on subtool)?

My script requires me to iterate through all my subtools and group split them at some point (if they have groups). I can just force the operation, but then the user sees an error that there are no groups on certain subtools and requires them to press a key. I’d rather just handle that error in the script before the ui warns the user.

thanks!

Brad

There’s no direct way that is reliable. In theory you can simulate a Shift+Ctrl+click on the mesh and then check to see if the point count changes but there are times when this doesn’t work and I heven’t been able to discover the reason.

The only other way is to export the mesh and then check for groups in the file. This can be fairly quick if you export a GoZ type file and use a DLL. I have attached an example so you can try it. Note that this is Windows only, though I can add Mac if you want it.

Interesting, thanks again Marcus! I’m already using the DLL for a couple other things, so i should be able to give the export trick a try pretty easily.