ScriptSpot

Script

Replace Objects Script

By Barometer · 2014-10-17

Version
1.0
Version requirement
3ds Max 9 or higher
Date updated
2014-10-17
Votes
7
Download
Download
Description


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.

Additional Info

If you check "delete old" checkbox, push "run" button and see an error - just rerun the script.
Videos
Attachments

Tags: Objects, Distribute Objects, replacer

Comments (6)

In MAX2021 it doesnt work with XRef objects?

3d-labor · 2021-10-15

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?

s e l e c t i o n (maybe update?)

Custom · 2015-06-06

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.

Barometer · 2015-08-24

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.

Location?

Custom · 2015-06-06

Which category should I look for to bring it to the button?
Thank you.

Barometer · 2015-08-24

Currently, this script only runs directly from a file, since it is not macroscript...