ScriptSpot

Forum topic · General Scripting

How to replace selected objects by script?

By Scathe · 2010-05-29

Description

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 (2)

Scathe · 2010-05-29

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 · 2010-05-29

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"...