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.
Now should work
If your object share same position in world space (overlaping) then will be deleted.
geoArr = geometry as arraywhile geoArr.count > 0 do(
lastObj = geoArr[geoArr.count]
idxArr = #() ; objArr = #()for o = geoArr.count-1 to 1 by -1 where distance lastObj.pos geoArr[o].pos < 0.01 do(append idxArr o ; append objArr geoArr[o])if idxArr.count != 0 do(
delete objArr
insertItem geoArr.count idxArr 1
for i = 1 to idxArr.count do deleteItem geoArr idxArr[i]))
Line that you need to change is
... where distance lastObj.pos geoArr[o].pos < 0.01 ...
If you want to learn more you need to start with MaxScript help
for some reason the max just stop working, I've 3000 objects and I guess there are about 500 overlapping geometries.
Then I try if it works on 11 objects only, it still stop working!
Ops sorry, the material is different (but the texture is the same just the directory is different), is it possible to use pivot or faces or vertex count etc.?
Comments
it says unexpected
it says unexpected end-of-script
btw how do I change "material" to other things? I dunno anything about maxscript sorry ;(
Now should work If your
Now should work
If your object share same position in world space (overlaping) then will be deleted.
Line that you need to change is
... where distance lastObj.pos geoArr[o].pos < 0.01 ...
If you want to learn more you need to start with MaxScript help
bga
for some reason the max just
for some reason the max just stop working, I've 3000 objects and I guess there are about 500 overlapping geometries.
Then I try if it works on 11 objects only, it still stop working!
Ops sorry, the material is
Ops sorry, the material is different (but the texture is the same just the directory is different), is it possible to use pivot or faces or vertex count etc.?