collapse to script needed

i need a script that collapse to all the selected objects
there is collapse toll in 3ds max but for some reason its not working right
i need the script to do like i would do- go to modifier tab>right click>collapse to>yes

can some1 please make that script for me?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Garp's picture

collapseStack $

collapseStack $

Anubis's picture

a hint

Quote from the help:
"collapseStack() does not collapse the effect of any world space modifiers (including bindings to Space Warps)."

The mxs-help suggest to use snapshot() method but CollapseNodeTo is better ;)

my recent MAXScripts RSS (archive here)

Nafetsu's picture

Late answer, but... as i was

Late answer, but...

as i was looking for it too and try successfully this :

colselect = selection as array
for i in colselect do maxOps.CollapseNodeTo i 1 true

I thought it may be useful ;°)
Cheers

--
CG Generalist

Anton Berg's picture

You could use "snapshot" if

You could use "snapshot" if you would like to collapse the WSM. But that turns it into a Mesh... which isn't ideal every time.

It does NOT collapse many objects to one mesh though... it just collapses the WSM.

OgmaSoul3D
Anton Berg
anton[at]os3d.se

Kstudio's picture
-S-A-'s picture

ty but its not working

ty but its not working well
i have lets say 5 boxes with camera map (wsm)
when i select the all 5 and run the script (i did ctrl+k)
it convert the boxes to editable poly but they still have the camera map (wsm) attached

and when i go box by box and ctrl+k it makes it to editable mesh without any thing attached but i have to do it 1 by 1

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.