
326
CI-IAVTE. 8 Polygonal Meshes
The global Construction History setting is retrieved.
i nt res"
MGlobal'-executeCommand( "constructionHistory-query-toggle", res )-
genHistory = (res ! = 0)"
If the mesh shape node doesn't have a history, its original mesh data is stored in
the origMeshData variable. This way, it can be restored later if the command is
undone.
if( !hasHistory )
{
If the mesh shape node has internal tweaks, the actual input mesh is stored in the
cachedlnMesh attribute. If there are no internal tweaks, the outMesh attribute can
be used to retrieve the final mesh.
MPlug meshPlug ...