Notifications
Clear all

[Closed] How to copy modifiers?

Im trying to copy a modifier from one object to another, however when I do it via maxscript it seems to move. If I do it manually it works fine…

Currently im using the following… Which is not working, the modifier is not copying exactly…

mObj1 = (object1)
mObj2 = (object2)
– copy modifier from obj2 to obj1
addmodifier mObj1 mObj2.modifiers[1]

What am i doing wrong?

4 Replies
local cMod = copy ($box02.modifiers[1])

Should get you a copy of the modifier which you can then re-apply to another object

Ok my problem is this.

If i copy it manually it works fine, if i copy it manuall then disable “always deform” in the skin modifier it has the same affect as copying it via maxscript

So basically this seems to be a maxbug

Okay, now I have no idea what you are talking about…

I create two cylinders.
I create three bones inside cylinder01 (to create a simple joint)
I dropped a skin modifier onto cylinder01 and added the bones…this worked fine, I could change the shape of the cylinder with the bones…
I then did this

cMod = copy $Cylinder01.modifiers[1]
addModifier $Cylinder02 cMod

I could then deform both cylinders with the bones simultantiously…
I turned “always deform” off on cylinder02, cylinder01 remained uneffected and deformed as expected
I turned “always deform” on on cylinder02, and off for cylinder01, cylinder 02 now deformed as expected.

I don’t think it’s a problem with maxscript, but maybe a miscommunication.

What is it, exactly, that you are trying to do and what do you expect the results to be?

Shane

Uh, basically im trying to copy a skin modifier from one object to another object(which is exactly the same).
The original object has already been animated.

My problem seems to be that most of the time copying the skin modifier works fine. But maybe 1 or 2 out of 10 objects it copys the modifier wrong.

Its not worth worrying about atm, I have a different way to do what im after anyway

Thanks