another option is create a mesh node and connect the outmesh to the mesh
node's shape node's inMesh

On Wed, Mar 11, 2009 at 10:52 AM, Chad Vernon <[email protected]> wrote:

> Can't you just duplicate it and make an instance?
>
> On Wed, Mar 11, 2009 at 10:46 AM, Omar Agudo <[email protected]> wrote:
>
>>
>> Hi,
>>
>> I am trying to copy a mesh in order to save memory. What is the best
>> way to do that?
>>
>> import maya.OpenMaya as om
>>
>> ...................
>>
>>                m1 = om.MFnMesh()
>>
>> ...................
>>
>>                obj = om.MObject()
>>                obj =
>>
>> m1.create(arrayPoints.length(),vertexPolig.length(),arrayPoints,vertexPolig,conexPolig)
>>
>> now I want to copy the m1 mesh to another m2 mesh that contains
>> exactly the same vertices, normals, connections, .....
>>
>> Thank you for your help!
>>
>> Omar.
>>
>>
>>
>
>
> --
> www.chadvernon.com
>
>
> >
>


-- 
Todd Widup
Creature TD / Technical Artist
[email protected]
[email protected]
www.toddwidup.com

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to