Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Pasting Edit_Poly from obj1 to obj2
  RSS 2.0 ATOM  

Pasting Edit_Poly from obj1 to obj2
Rate this thread
 
37985
 
Permlink of this thread  
avatar
  • Tushar
  • Posted: 20 December 2009 05:20 PM
  • Total Posts: 20
  • Joined: 19 November 2007 09:20 AM

Hi,
I have made a small script to select a modifier from picked object and paste it(as an instance) to multiple objects through “addModifier”. But doing this with Edit Poly modifier doesn’t preserve any editing in the source modifier when pasted to other objects.
I even tried “modPanel.addModToSelection”.
However, if I manually copy and paste the Edit Poly modifier from stack of one object to another object all the editing and extruding is preserved and transferred to other object. I want exactly same thing to multiple objects (keeping in mind that poly count is same) through scripting.
How can this be achieved?

Thanks
Tushar



Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Doesn’t seem to work with an Edit Poly (or an Edit Mesh). It does, however, work with parametric modifiers such as Bend, Spherify and so on. Even instancing the Edit Poly before making any changes to the object does not carry those changes through to the instanced modifier.

It’s obviously possible because, as you noted, it works when done through the UI. How? I don’t know, I’m afraid.



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 1
/img/forum/dark/default_avatar.png

Thanks Steve for confirming my doubt.
I actually made that script keeping in mind instancing of Edit Poly or Edit Mesh after some editing has been done. Which is sometimes desirable in editing multiple morph targets.
But anyways, it is still useful for parametric modifiers.

Author: Tushar

Replied: 21 December 2009 05:44 PM