Remove Isolated Vertices script ?

Remove Isolated Vertices script ?

Javadevil
Contributor Contributor
5,475 Views
8 Replies
Message 1 of 9

Remove Isolated Vertices script ?

Javadevil
Contributor
Contributor

I'm after a script that can select delete isolated vertices and center pivot point on editpoly and editmesh ( but not lofts, sweeps and objects with modifiers on them)

I have models coming from Archicad exported with the lumion exporter, theres isolated vertices all over the place, making the scene hard to handle.
Selecting all of the models and applying edtipoly or editmesh takes 3dsmax a long time, selecting isolated vertices, hitting delete and centering pivot point.
So i have to do it in batches, but a script would be very handy 🙂

0 Likes
Accepted solutions (2)
5,476 Views
8 Replies
Replies (8)
Message 2 of 9

Swordslayer
Advisor
Advisor
Accepted solution

To remove isolated verts from editable mesh/poly objects:

 

for obj in objects do case (classOf obj) of (Editable_Poly: polyop.deleteIsoVerts obj; Editable_Mesh: meshop.deleteIsoVerts obj)

To center pivot for all selected objects:

 

centerPivot selection

In both cases, you can replace objects with selection and vice versa to operate either on selected objects only or all objects in the scene.

Message 3 of 9

Javadevil
Contributor
Contributor

 

 

Thanks for that, I will try it out when I get a spare minute, all these last minute Christmas deadlines !!!

0 Likes
Message 4 of 9

Alfred.DeFlaminis
Alumni
Alumni

Hello @Javadevil,

 

I just wanted to follow up here, any progress on this issue?  Did the script from @Swordslayer work for you?  Thanks for the update!

Best Regards,

0 Likes
Message 5 of 9

Javadevil
Contributor
Contributor

This works great, thanks !!!

 

Now I just need a reset xform too 🙂

 

I opened the listener to see if it would log a command but failed to see it.

 

0 Likes
Message 6 of 9

Swordslayer
Advisor
Advisor
Accepted solution
Message 7 of 9

Javadevil
Contributor
Contributor

 

 

Thanks Sword Slayer,

 

No how do I put that all together in one script ? 

I've been copy pasting into the the listener, hitting enter, for each one, that works.

I tried putting it all into the Maxscript window as a .ms file but I guess its not working since I don't have the brackets and whatever else is required.

 

cheers

0 Likes
Message 8 of 9

Javadevil
Contributor
Contributor

 

 

Just tried your instantmesh bridge, nice one !! I think this will be very useful.

I have previously used populate terrain, which is pretty good, but fails sometimes, really depends on the quality of the mesh to begin with.

 

0 Likes
Message 9 of 9

Swordslayer
Advisor
Advisor

@Javadevil wrote:

 

 

Thanks Sword Slayer,

 

No how do I put that all together in one script ? 

I've been copy pasting into the the listener, hitting enter, for each one, that works.

I tried putting it all into the Maxscript window as a .ms file but I guess its not working since I don't have the brackets and whatever else is required.

 

cheers


Putting it all together shouldn't be any more complicated than copy-pasting it in the script the right order and replacing 'selection' with 'objects' or vice versa, depending on your use case. No additional brackets neccessary here. Do you get any error when evaluating that?