[.net] void pointer help??

Started by
0 comments, last by maxdub 15 years, 5 months ago
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; }
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
.max

This topic is closed to new replies.

Advertisement