Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 05-11-2002 , 04:20 PM
Registered User
Join Date: Sep 2002
Location: London
Posts: 9

API: getting DAG path for input mesh

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!!

# 2 05-11-2002 , 04:22 PM
adldesigner's Avatar
Registered User
Join Date: Sep 2002
Location: CCS, Venezuela
Posts: 3,363
Whoa, ask me about design, photography or whatever but dude, you´ve surpassed my limit. Should have seen my face when I read this. user added image

Anyway, don´t worry, I´m sure somebody will have an answer for you!

# 3 05-11-2002 , 04:49 PM
Registered User
Join Date: Sep 2002
Location: London
Posts: 9
hehe, well thanks for taking the time to read it man. Anyone out there know what the answer is?

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads