Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 05-11-2002, 04:20 PM   #1
playmesumch00ns
Registered User
 
Join Date: Sep 2002
Location: London
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!!
playmesumch00ns is offline   Reply With Quote
Old 05-11-2002, 04:22 PM   #2
adldesigner
Registered User
 
adldesigner's Avatar
 
Join Date: Sep 2002
Location: CCS, Venezuela
Posts: 3,363
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Whoa, ask me about design, photography or whatever but dude, you´ve surpassed my limit. Should have seen my face when I read this.

Anyway, don´t worry, I´m sure somebody will have an answer for you!
__________________
adldesigner
Caracas, Venezuela
Hell .. not gone perse, but with a certainly lower post count per day.

adldesigner is offline   Reply With Quote
Old 05-11-2002, 04:49 PM   #3
playmesumch00ns
Registered User
 
Join Date: Sep 2002
Location: London
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hehe, well thanks for taking the time to read it man. Anyone out there know what the answer is?
playmesumch00ns is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.