Replace Objects Script
This script can automatically replase specified objects in scene (each of them) to another object. Replaceable objects should have a similar names, for example: Box001, Box002, Box003... etc.
Run script, and with button "Old" pick one of the objects, which you want to replace. Other simillar objects will be append automatically, based on their name. Then with button "New" pick an object, which will replace previously selected objects. Push a button "Run",
and all objects will be replaced with the copy (or instance) of new object.
If you check "delete old" checkbox, push "run" button and see an error - just rerun the script.
Attachment | Size |
---|---|
replaceobjectsscript.mse | 3.57 KB |
Comments
In MAX2021 it doesnt work with XRef objects?
Hello, I tested your script. It works as it should with simple objects. When I try to replaxe XRef objects with other XRef objects I get an error called "- Syntax error: at end, expectedd - In line: " (no special line mentioned). Do you think your script works with XRef objects too?
www.3d-laboratory.com
Visualization for architects
Currently, this script only
Currently, this script only runs directly from a file, since it is not macroscript...
The fact that the script has
The fact that the script has been made for a specific task. I will try to implement these features in the next version of the script.
If you want to do this based
If you want to do this based on selection or class rather than names you could try Modifier Zorb's Make "Base Objects Instances" function as an alternative. http://www.scriptspot.com/3ds-max/scripts/modifier-modifier-zorb
s e l e c t i o n (maybe update?)
I would ask to add possibility to preview selection of objects that will be replaced.
Because this automatic feature with similar names causes unpredictable things.
In my case this names were considered similar:
Giorgetti (dis. Chi Wing Lo) Aro #51600 - Stul 008
&
giorgetti Ping
It forces me to use renaming script... So this is slowdown.
Manual selection can be handy in some cases as an alternative to said above.
Also noticed that there is no undo.
Location?
Which category should I look for to bring it to the button?
Thank you.