I know this is an ancient topic - but just to make sure other people might 
find this when they google or search. This seems like it's the exact Maya 
function to just "collapse" the .pnts data into the vertex positions: 
https://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/polyCollapseTweaks.html

*This Maya function will "bake in" or "collapse" the Vertex tweaks of a 
Mesh into the vertex positions. It basically clears the .pnts attribute 
whilst preserving your output. It's super fast too.*

Be aware that it seems to error out when there's no tweaks on the mesh yet. 
However, that's not an issue since you can also query it instantly with 
this method:
for mesh in meshes:
    if cmds.polyCollapseTweaks(mesh, query=True, hasVertexTweaks=True):
        cmds.polyCollapseTweaks(mesh)

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/bf0b4fae-b841-4695-a80c-43c13edba5b9%40googlegroups.com.

Reply via email to