Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi, How do I know the value of one locator node's "worldMatrix" attribute? (c++)
I used the following code, but it gives abnormal values or numbers. Are the following codes wrong?
MPlug worldMatrixplug = depNode.findPlug("worldMatrix", true, &status);
MPlug worldMatrixplug_ele = worldMatrixplug.elementByLogicalIndex(0);
MMatrix locMatrixA( worldMatrixplug_ele .asMDataHandle().asMatrix() );
MTransformationMatrix locMatrix( worldMatrixplug_ele .asMDataHandle().asMatrix() );
Solved! Go to Solution.