Advertisement Jump to content
Sign in to follow this  

[.net] void pointer help??

This topic is 3719 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
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.


according to this site:

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

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!