Max Scripting

Max Scripting

Anonymous
Not applicable
1,109 Views
2 Replies
Message 1 of 3

Max Scripting

Anonymous
Not applicable

How  do i batch process a scene containing 1000 of objects. each object to merge vertices. doing it manually is a tedious work!! Is there any script available any suggestions greatly appreciated!!

0 Likes
Accepted solutions (2)
1,110 Views
2 Replies
Replies (2)
Message 2 of 3

blakestone
Collaborator
Collaborator
Accepted solution

The below script will add the "Vertex Weld" modifier to every geometry object in your scene with the threshold setting of "0.1" - change this value as needed.

Delete the commented line if you don't want it to collapse the stack.

 

(
    for i in geometry do (
        addModifier i (vertex_weld())
        i.modifiers[#vertex_weld].threshold = 0.1
        collapseStack i -- delete this line if you don't want to collapse the stack
    )
)
Message 3 of 3

Anonymous
Not applicable
Accepted solution

Just what i needed TYSM Smiley Happy

0 Likes