About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
if selection.count != 0
if selection.count != 0 do
(
local firstInstances = #()
for o in selection do
(
InstanceMgr.GetInstances o &firstOnly
if firstOnly.count > 1 do
append firstInstances firstOnly[firstOnly.count-1]
)
if firstInstances.count != 0 do select firstInstances
)
...
Using this fn U can do what you want
Now "objs" argument in fn represent array ei.collections of object.
If you want to consider only selected objects then run
collectUniqueNodes selection
to consider only geo-objects use
bga
Still now working for
Still now working for me...
We are putting a script together to clean up imported CAD geometry. What we would like it to do is to selects all non instanced objects and a single instance of the instanced objects.
our goal is to select only the necessary objects prior to running the other scripts such as delete isolated verts, weld and smooth, flip inverted normal, quadrify ect...
I would appreciate any help.
Thank you!
...
I simplified fn and now it works fine
bga
This works!...1000 Thanks!
This works!...1000 Thanks!
Thanks!
Thanks!
Thank you very much ! :-)
Thank you very much ! :-)