Hi,

I have a scenario where i need to construct large meshes, then variously 
output those same meshes with various extra data 'appended' to them them.

If i have a preComputeBasicMeshes() that does something like:


MObject basicMesh_DObj = MFnMeshData().create();

MFnMesh().create(
    ...,
    ...,
    basicMesh_DObj
);

keptForReuse_DObjs[x] = basicMesh_DObj;



... and those MObjects are not inserted into a MDataBlock, then, can i pick 
them up at any stage, make a copy, set MFnMesh on to those and blat them 
out into the DG? 

Safely.

I woudln't keep a reference to a DG/dataBlock derived or inserted one, for 
obvious reasons, ... but if you're just making a 'local instance' of the 
MObject, and it would seem only your node has reference to it, will it be 
ok?

... i do have that arrangement working, but have i just been lucky thus far 
with black-boxed memory configurations, and am simply asking for trouble?


Cheers!
C.

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/88fbf8f1-874a-428e-8f06-6c09de92706e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to