removing clusters

General questions and troubleshooting SOFTIMAGE©
Post Reply
thorsnuts
Posts: 153
Joined: 08 Oct 2012, 19:42

removing clusters

Post by thorsnuts » 30 Jun 2016, 22:04

Hello...

Is there away to remove texture clusters from a mesh or multiple meshes? At the moment, I must go into each mesh and delete unwanted clusters holding texture information. Those clusters are annoying because it over rides new materials I want to use instead of the ones already on the mesh. you know what i mean?

Thanks as always

User avatar
mattmos
Posts: 445
Joined: 02 Dec 2009, 16:59

Re: removing clusters

Post by mattmos » 01 Jul 2016, 00:34

A script would be the quickest way - jscript version here:

DeleteObj("model.object.polymsh.cls.P*");

Obviously you need to replace the model and object to reference the object you want to get rid of polygon clusters from - though you could use the * wildcard to delete clusters from all objects under a model, or all objects under all models in a scene. ie:

DeleteObj("*.*.polymsh.cls.P*");

The reason it is P* is that it is usually only Polygon clusters which hold material information, and you would end up getting rid of other clusters that you might need such as texture coordinates etc.

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 08:59
Location: Close to The Hague, Netherlands
Contact:

Re: removing clusters

Post by Rork » 01 Jul 2016, 09:10

Yes, that's the way to go.

For importing models coming out of other apps, like 3dsmax etc, I wrote some very basic scripts like this.
Some basic scripts to remove clusters, normals etc., cleaning clean up imported stuff in one go.
Just keep the script editor open and look what is logged, then replace the script line where needed with wild cards.

You can quickly create some buttons on a shelf for each imported file format, so you have them available all the time.

rob
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

User avatar
gaboraa
Posts: 314
Joined: 16 Apr 2010, 23:14

Re: removing clusters

Post by gaboraa » 01 Jul 2016, 14:11

I use Myara's mCleaner which is great for cleaning up meshes, finding topological problems etc.

http://skymill.co.jp/tools/Softimage/mC ... nerEN.html

julius
Posts: 248
Joined: 12 Jun 2009, 10:56

Re: removing clusters

Post by julius » 02 Jul 2016, 00:38

You can delete all your clusters using the subcomponent slot on the right (just under the name of selected object) :

Select all your meshes, and type "polymsh.cls*" on it and press enter --> all your clusters are selected --> press delete

thorsnuts
Posts: 153
Joined: 08 Oct 2012, 19:42

Re: removing clusters

Post by thorsnuts » 05 Jul 2016, 16:35

Thanks for the tips guys

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests