How to replace selected objects by script?

Hi!

I got the following problem:

There are several equal objects in my scene, that i want to replace with the same object plus a light (so replace 1 object with 2 objects)

If I had to replace each object manually, that would take me days.

Is there an efficient way to say "replace every object from selection with a specific group of objects" in maxscript?

Thanks for answers ;)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Scathe's picture

Thank you so much! I'm new to

Thank you so much!
I'm new to Max, didn't know that this possibility existed with Align & Distribute!

Worked out really well (except some minor rotation problems) ;-)

Nevertheless I'm gonna search for replacing scripts.
Thanks!

Admin's picture

You might just try grouping

You might just try grouping your objects and using the stock "Align & Distribute" tool in your 3ds Max "Tools" menu...

There are several scripts here that do something similar as well - each with their own features... Try searching for "object replacer" and filtering to just 3ds Max Scripts"...

Christopher Grant
Admin, ScriptSpot.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.