replace geometry only

I work on Lightwave for modelling and max for rendering....
I convert LW model to max and save. I open master scene file and merge the file.
When I make lot of changes in my model I do it again. But I have already assign material UVW mapping, etc... If I merge or replace my object with the new scene I loose all I did in max.
Is there a way to replace just geometry ?


Comment viewing options

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

the end ?

the end ?

Budi G's picture

hi titane, you're welcome.

hi titane, you're welcome. thank you.
I have new update script to next version, you can check here: COPY_MAT

hi anton you have great skill about script.
Indirectly I even also learn from you. thank you.


Anton Berg's picture

I have made a new version

I have made a new version with the little added features you where asking about. And I will continue to see if a new merge tool would be possible to create...

Feature requests:
1) Apply modifiers to selection without checking if it already has modifiers already.

2) Select by name, you get a list to choose which model to copy from.

3) the pick object button does NOT let you pick an object instead it takes the currently selected object as an input.

REMEBER that this script only work with one input at the time. I am thinking of a way to automate several objects but this not solved yet.

OS3D copy materials and modifiers V07.jpg 17.96 KB
OS3D - Copy Materials and Modifiers 4.37 KB

Anton Berg

W DIGITAL's picture

this is great but how to copy

this is great
but how to copy modifer instance so i can control all of them with one?

titane357's picture

Thank you very much Anton

Thank you very much Anton !
I join a screen shot of Cinema 4d. In C4d we can duplicate "layer manager" so we can put side by side two list of objects (without scrolling up and down)
So in c4d I can drag and drop "modifiers" from one object to another.
This workflow is similar to character retargetting : two list of objects side by side, so when automatic retargetting don't find an object you can make it by hand.

copy.png 254.81 KB
Anton Berg's picture

This script is made in

This script is made in 3dsmax 2009.
I have made a first version of this script to just solve the copy and pasting of materials and modifiers. To test the attached script just dragNdrop it onto 3dsmax.

1. Press the select from button and then select the object you want to get the material/modifiers from
2. Select the other objects you want to paste to and press either of the 3 buttons to the right!
3. I have added a small feature that I needed when doing this and that was to remove all modifiers on the current selection. You might need this to.

Please reply to this so we can continue this development:
I still haven´t figured out the best way to know how should the script know which is the old version of the model and which is the recently merged/imported one.

To solve this I need some input on your workflow.
1. I guess that you merge the new scene with the old one or?
2. Do you have several objects with the same name in 3dsmax?
3. If we talk about a single object: Do you have the same name on the old object and the new merged/imported one?
If yes. I am thinking of the best way of knowing which is the old one and which is the new one.

One solution would be to a state in 3dsmax before you merge the new scene. 2. import the new objects 3. compare the old objects with the new ones.

Another solution would be to create a new merge command that does approximatelty the same thing.

OS3D copy materials and modifiers V01.jpg 14.45 KB
OS3D - Copy Materials and Modifiers 3.38 KB

Anton Berg

titane357's picture

Whaoo !!! Thanks you very

Whaoo !!!
Thanks you very much !!!
Hi budy, thank you very much for your script. It works great. More usefull scripts are not necessary more complexe ones.
I really think that "little" script like that can save hours of tedious tasks for people like me who can't (I hope just for now) make their own script.
Anton, you made a really good job. That works very well, thanks !!!!
If I can make some requests :
- I would prefer to select source object (copy from) rather than pick it, so I can use outliner or layer manager to select objects.
- could it be possible to have a "for all objects" option, because for a lot of object it is boring to clic "yes" if a modifier is already present.
I use max 2009 too.
For your questions :
1. yes I merge with the old scene
2. logically, there is just one object with the same name in my scene, because object name is the material name assigned in lightwave.
All polygons with "wall_white" material applied in LW will be gathered in one edit poly named "wall_white".
3. yes.
My dream should be to have a tool (new merge command, or replace command) which can replace objects in the scene by other in an another scene,
keeping modifier in master scene intact.
Thank you very much to all !!!

Budi G's picture

hmm....well, i think it's

hmm....well, i think it's about procedural problem.
Sorry if I miss something, ok ! :)

I have new upload about this, you can check and download macroscript here : COPY_MAT

that's same code. I have convert to macroscript tool.

ok, lets clear to usage of this script.


reset or clear scene

- create 3 teapot in max scene.

- assign any material ( ex: material checker ) into 1 teapot of them.

1. select 2 teapot whithout material ( it's 2 object when you want put material from 1 object ).

2. click "COPY_MAT" macroscript tool

3. pick 1 teapot (teapot have material checker)

4. done :) ( material automatic paste into 2 teapot.)

well, you can try again with any object for make sense.

This macro is basic script still have too poor future.
if is usefull for someone maybe someday i will correct to next version.

well, I think in scriptspot maybe you can find it the script like this.

Budi G's picture

Hello titane Well, I have a

Hello titane

Well, I have a little bit experience about Import/Export (i/e) between LW to max or vice versa.
You can try with "FBX", the FBX is default plugin in max i/e.
the model and animate can be transfered by FBX, but you must be add FBX L-scipt into LW.
The FBX L-scipt can be searched by google.

anyway, many way for in this case.

About quick copy material, you can try by this scipt :
undo "copy Material Object " on
obj= pickObject prompt:"Pick object have material"
try (for i in selection do i.material = obj.material) catch ()

select one or more object - run this script and then pick another object having material, it's automatic paste into object selection.

But if you have bad UVW on model the script can not fix it.

about copy modifier is too complex... I have problem code with array index modifiers for this time.
but if I find this trick, maybe someday I will upload in here.

suggestion from admin is also good.
Perhaps Anton or someone else can fix it.

sorry, for my bad english too ;-))


Budi G

titane357's picture

Hello Budy, I tried your

Hello Budy, I tried your script but nothing happen... I look into maxscript docs and try different things, but pickobject don't seem to do anything (cursor don't change its shape when on a shape) :-(((

Comment viewing options

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