So after a quick search, I found this script that (apparently) does what it claims to - makes identical geometry instanced based on user-defined selections.
http://www.scriptspot.com/3ds-max/scripts/instance-identical-geometry?page=1
However, I'm wondering if anyone else has tried to use this with no success?
Firstly, I installed the v.1 script, ran it, crashed Max. The objects weren't particularly dense, nor were there hundreds of them (there was about 20 or so objects of about 70 triangles or so). So, I tried v.2, which as the comments on scriptspot indicate, had syntax errors.
I figured v.2.1 would be my savior, but alas, it isn't. No syntax errors when I try running it, but nothing happens either. No dialog box, no warnings,
nothing. This script supposedly works on any version of Max, so I doubt it's a compatibility issue, and I'm using Max 2009 32-bit on Vista.
The comments after the 2.1 release suggest that the syntax errors were fixed and that the script supposedly works, so I'm at a loss as to why this isn't doing anything at all? This script really would save me a buttload of work, so has anybody else experienced this issue and resolved it, or found another script that does the same thing?
Replies
Probably obvious, but all you'd have to do is after making sure the meshes edge count was the same is compare the edges lengths (based on #). Object scale differences would trow it off, so you'd have to take that into account.
I think that the problem with the script is when the script loads up it is defining the local variable as 0 so that when the script runs it thinks there is no objects selected. This is causing the button to be greyed out.
So by copying this line: Into the main body of the script the script, just after on execute do, when the button is pressed the script recognises how many objects are selected and can convert the objects to instances.
Also the line is disabled to stop the button greying out altogether.
So the edited script looks like this: