ScriptSpot

Script

Instance Identical Geometry

By Anubis · 2010-02-27

Version
2.0
Version requirement
3ds Max 2008 and higher or AVG (Avguard extention) for previous
Date updated
2011-04-09
Votes
49
Description

Find identical objects (to chosen one) and instance them.

Instance Identical Geometry

What's new in version 2.0 :

  • process multiple (selected) objects at once
  • rollout (with pick button) removed
  • the script rewritten as macros

Additional Info

To be instanced nodes need to match this criterions:
    identical class, face/verts count, scale
You could expand it with more criterions... (see the notes in the code) Of course, don't forget to hold/backup your scene first.
Attachments

Tags: instance, instancing, make copies to instances, similar, anubis, unique, identical

Comments (23)

sure,3ds max 2011 66 bit on

jinj · 2011-04-08

sure,

3ds max 2011 64 bit on win7.... max is running with administrator rights.

error pop on running at line 23:

on isEnabled (objSet.count != 0)

reported error kind from max:

--Sintax error: at (,expected do
--In line: on isEnabled (o

nurbs obj supported? if no could you support it?

Anubis · 2011-04-08

Hmm, I checked here that I fixed this minor problem an year ago (April 2010). Maybe I forgot to upload the fixed file :) Now is here, just redownload the script.

With the script you can instance nurbs surfacase, 'cause its designed for geometry, but not work on other types as shapes for eg.

If you look for more powerful instancer tool - chek my Dups Instancer.

Cheers!

Hey, thanks for such a script!

Artie · 2012-02-20

The new version doesn't work in 3ds Max 2012 64-bit. Just seems grayed out and i can't get it to work wahatever i do. The older one works fine but all the instances change their location and kind of overlay each other - could you please fix this?

Hey Artie

Anubis · 2012-02-21

I have not Max 2012, so cannot test and debug for that version. Both script versions using the same mxs function

instanceReplace

and that "change their location" should not be happen, and to test whether this function still works properly, you can made some test by hand - rename some source object to "source", then select some objects you want to replace, and then run in the Listener:

instanceReplace (selection as array) $source

(this way you'll confirm if this is a new bug in Max 2012)

jinj · 2011-04-07

can this script create istances from nurbs obj?

version 2 have an error when opening

more details please

Anubis · 2011-04-08

Hey jinj,

to can help post more details about the error you have and your Max version of course.

Nice tool :)

Budi G · 2010-12-09

Hi anubis
I guess you should give a note to users


areNodesInstances <node> <node>

that methods is available 3dsmax 2008 and higher. previously available in the AVG (Avguard extention)

Anubis · 2010-12-10

Thanks Budi,
nice note, I'll add it to the desc :)

Anubis · 2010-12-09

Hi k2000,
you are the first one who report a problem with version 2. It's a macro script and you can find it in category Tools into the customize dialog. If something else - please be more concrete (to can help).

k2000 · 2010-12-09

version 2 doesn't work

tomastnt · 2010-07-21

Ok ok ...sorry. I found out it is in category Tools. Ok, but still doing the same like version 1.0. Objects were instanced, but not rotated like original positions. Every objects are on one position like the base object...

Anubis · 2010-07-22

Hi Tomas, I can not open the scene file but import the 3DS file and notice that the script really goes wrong with your objects, but unfortunately I have no idea why... The script as is works correct. Maybe someone (more free man) could spend a little time to check out the issue with this objects.

[edit] I remember that there was a topic in the autodesk forums about bugs with MaxScript instanceReplace function, its fail sometimes and no one can tell why: http://area.autodesk.com/forum/autodesk-3ds-max/maxscript/objects-flips-…

tomastnt · 2010-07-21

Hi. I tried your scipt on my easy scene with 20 objects, but doesn't work properly. I tried like a first script version 1.0. It found 17 instances, it is right, but after I pushed the button make instances, so instances were done, but on a same position like original object. Not moved or rotated. Confused...
Ok, after this i tried your script 2.0. Doesnt work. After that i tried 2.1 but i can't see any window of scipt. Where can i found the window of the script? Looks like after run script I does do nothing.
For sure, I am attaching the scene and the scene in 3ds format. Thank you.

Attachments

harumscarum · 2010-06-04

ver.2 doesnt work for me

Attachments

Anubis · 2010-06-04

Thanks for the comments and the points as well :-)

Nafetsu · 2010-06-03

Great idea, it will be very useful for sure !

Michele71 · 2010-06-03

Anubis you are always the best! Good script, very helpful. One point to you ;)

igamaximus · 2010-06-03

Fantastic useful script, thank you. Please Anubis, make it batch - possible to work with many objects selected at once (instead of selecting 1 by 1).

Anubis · 2010-06-03

Thanks for the nice feedback. I fill your request. The script updated. Enjoy!

veneta · 2010-02-28

Thanks!

Anubis · 2010-02-28

You're welcome :-)

Waxmodeler · 2010-02-27

Excellent. Thank you for making something that works for my Max version 8. Rock the House :-)