Quick update.

Basically the code above is fine except for one thing. The attribute I have 
to read is not "inMesh", but rather "cachedInMesh"
>From Maya's Mesh Node documentation...

*inMesh* (*i*)meshNULL[image: output] 
<http://download.autodesk.com/global/docs/maya2014/en_us/Nodes/flagHelp.html>[image:
 
input] 
<http://download.autodesk.com/global/docs/maya2014/en_us/Nodes/flagHelp.html>[image:
 
connectable] 
<http://download.autodesk.com/global/docs/maya2014/en_us/Nodes/flagHelp.html>The
 
input (creation) mesh.
*cachedInMesh* (*ci*)meshNULL[image: output] 
<http://download.autodesk.com/global/docs/maya2014/en_us/Nodes/flagHelp.html>[image:
 
input] 
<http://download.autodesk.com/global/docs/maya2014/en_us/Nodes/flagHelp.html>[image:
 
storable] 
<http://download.autodesk.com/global/docs/maya2014/en_us/Nodes/flagHelp.html>Internal
 
cached input mesh used only for file I/O. This attribute is for internal 
use and should never be directly manipulated by the user. If it is modified 
the results will be unpredictable.
which is possibly what I am looking for.

If I try to apply this point information to another compatible mesh, I see 
that it goes back to the mesh original state.
Anyway, it doesn't work in all cases.

Say that I have my mesh referenced in Maya, I select it, I send it to 
Mudbox, and then after some tweaking I send it back to Maya.
At this point if I run the same script (querying the cachedInMesh 
attribute), i get the same error as above (Unexpected internal error).
This means that for some reason now that attribute is not valid anymore. Or 
it was somehow modified by Mudbox...

If I open the Hypergraph I see that there's a new shape node (that is the 
mesh from Mudbox) whose outMesh goes straight into my referenced mesh's 
inMesh. Whether I disconnect it or not, the script will fail anyway.

I thought I got closer to the solution, but I can't really call it done yet.

Any suggestion anyone?

Thanks



-- 
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/f1b87dcc-ab2e-495b-b92b-74991ae7670d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to