Enrico, If you plug anything into the inMesh slot, the data there previously will get wiped out.
During load, Maya will fill this slot with the mesh from the file, given that references are loaded first (see any .ma file for reference on ordering), but then continue on to replace this data with that from its incoming connection. This data then persists, even if you disconnect from inMesh afterwards. (But probably re-appears if you reload the scene at that point, given that no incoming connection will wipe it out once loaded, though I haven't tested and wouldn't rely on it). If you can find a way to *not* plug anything into the inMesh, then your referenced mesh will remain untainted in this slot. One way of doing that might be to blendshape the original mesh with the mesh coming in from Mudbox. On 23 November 2015 at 11:06, Enrico Losavio <[email protected]> wrote: > Hi, > > after further testing, I'd say that the inMesh, or cachedInMesh, attribute > is not the way to go. > Maya does save the initial state of the mesh (as explainede HERE > <http://download.autodesk.com/us/maya/2009help/index.html?url=Polygon_API_How_polygons_are_handled_internally.htm,topicNumber=d0e647908>) > in these attributes, but it's quite hard to tell when it is gonna happen. > I need to access information about the mesh as it was at the time of being > referenced, and I need to be 100% sure that the data I'm retrieving will be > correct. > I've seen that in some cases, both the inMesh and cachedInMesh attributes > of my referenced shape node are invalid, which means that I cannot rely on > them. > > As Marcus Ottosson says, I could try to reference the mesh again, read > that, and then unload it, but I think there have to be a better solution. > > Does anyone know any other way to access this data? > > -- > 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/82ab7630-a048-43fd-a3af-b91b3adbecbe%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/82ab7630-a048-43fd-a3af-b91b3adbecbe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- 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/CAFRtmODQWMnPtUWY0Q%2BvPxdimTqbv%2BToA%2BQvujWEQ7wwM-0fMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
