PDA

View Full Version : getting DAG path to mesh, please help me!!


playmesumch00ns
11-05-2002, 03:21 PM
I'm writing a node where I've got a MFnData::kMesh attribute as input (called inputMesh). My trouble is I can't seem to get a DAG path to this input mesh.

In the compute method I do this:

MDagPath dagPath

MDataHandle inMeshDataHandle = data.inputValue(inputMesh);

MObject meshObj = inMeshDataHandle.asMesh();

MFnMesh meshFn(meshObj);

meshFn.getPath(&dagPath);

but getPath fails, telling me the object does not exist! The function set can read it fine, i.e. tell me how many edges the mesh has got etc, so why can't I get the path!? Please, does someone know what I'm doing wrong? This is driving me crazy!!

playmesumch00ns
11-06-2002, 11:53 AM
never mind, found the solution. Now I have a new problem to entertain me!

CGTalk Moderation
01-13-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.