SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / API: getting DAG path for input mesh
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 05-11-2002, 03: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, 03: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, youve surpassed my limit. Should have seen my face when I read this.

Anyway, dont worry, Im 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, 03: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.