question about the uv transferring

57 views
Skip to first unread message

matthew park

unread,
May 8, 2014, 1:48:26 PM5/8/14
to python_in...@googlegroups.com
Hi great helpers out there,

Currently I am trying to transfer a uv set from one to the other object and don't want to leave any history, because Delete Nondeformhistory breaks my rig.
I try to use MayaAPI but still have to create the transfer node if the uv number is different.
Is there any smater way that meets every condition I want?

Thanks a lot!

mfn_mesh = OpenMaya.MFnMesh(mesh_mObj)
        for uv_set, uv_arrays in uv_dict.items():
               mfn_mesh.setUVs(uv_arrays[0], uv_arrays[1], uv_set)


M

Arthur Na

unread,
May 8, 2014, 3:16:29 PM5/8/14
to python_in...@googlegroups.com
Hey Matthew,

 How are you doing.

you can copy UV to target`s intermediate mesh  and you don`t have to worry about history too much.


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAMczULaxkcOhaqXwNOExu4gL2exgDVCuQKPnufEaRc3_h%2BVW0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

matthew park

unread,
May 8, 2014, 6:05:24 PM5/8/14
to python_in...@googlegroups.com

Hi Arthur,

yeah that trick is great for many cases, but our studios rig has multi referenced rigs with some tricks were used to make the rig woked and maya doesn't update  dependeny well enough.
that's why I want to transfer uv to the main surface

Matt

Andres Weber

unread,
May 9, 2014, 12:41:13 PM5/9/14
to python_in...@googlegroups.com
You could do a few things...if your rig is wonky and you cheated a bit to fit something in there then you can just make a new duplicate mesh, transfer the UVs to that and then delete history.  Then match the binds between the two objects and transfer weights.  Now delete your old mesh and your new one is the correct mesh you wanted.

Alternatively you could start a geometryCaching pipeline wherein you just have a render mesh and a rig mesh and the rigged mesh just creates a geometry cache that applies to the render mesh after it's animated.  In this situation you wouldn't care about history etc on the render mesh and could do any UVing you please on it.

Otherwise Artonator's solution DOES work in this situation...from what I can tell.  You seem to have a pretty specific situation with inherent problems that I'm not aware of so I can't fully advise since I don't have the full story.  There's many other things you could do but it's not worth listing everything under the sun...

Erkan Özgür Yılmaz

unread,
May 9, 2014, 12:46:56 PM5/9/14
to python_inside_maya

Transfer UVs to the intermediate shape and freely clean the history of the intermediate shape node, you would be surprised when you see that it didn't break your rig.

Also as suggested use caches, it will make your pipeline flexible. But alembic will carry uvs, so you need to update your rig and the best way is the intermediate shape trick.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages