Jump to content
  • Advertisement
Sign in to follow this  
abahena

[.net] void pointer help??

This topic is 3658 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The void pointer is a Mdagpath and I want to connect the exclusive matrix to a matrix attribute geometrySurfaceConstraint::targetGeometry What Im doing wrong? MStatus geometrySurfaceConstraintCommand::connectTarget(void *opaqueTarget, int index) { MDagPath* voidDagPath =(MDagPath*)opaqueTarget; void *Void = &voidDagPath->exclusiveMatrix(); MStatus status = connectTargetAttribute( Void, index, geometrySurfaceConstraint::targetGeometry ); if (!status) { status.perror("connectTargetGeometry"); return status;} return MS::kSuccess; }

Share this post


Link to post
Share on other sites
Advertisement
I think you're in the wrong forum so you might have trouble getting answers, this is for discussion about the .NET api. Your question is better suited for a maya api or tools oriented forum.

But...

according to this site:
http://download.autodesk.com/us/maya/2009help/API/class_m_px_constraint_command.html#52b992a65fe16fcced656083aaa919ae

the function youre trying to use is obsolete, you should try using:

MStatus MPxConstraintCommand::connectTargetAttribute(MDagPath& targetPath, int index, MObject& targetAttribute, MObject& constraintAttr, bool instanced = false)

which isn't obsolete AND takes a MDagPath instead of a void* which should solve your original problem.

Hopefully that helps!!
.max

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!