iamsonobody
08-16-2009, 10:40 AM
Hi there Maya gurus.
I'm trying to write a Maya plugin using the c++ api. To make it short, It will track features such as markers from a video or a web cam. For each such marker that are tracked the plugin will create and control a locator in Maya. The plugin is to be used while doing e.g. facial animations by connecting joints or blend shapes to the locators. Now the tracking part is already done and are working just fine, but I'm totaly inexperienced in the black art of Maya plugin programing.
So I have two initial impediments.
How do I add my custom locator(s) to the DAG (or is it DG) programaticly. Is the best way to have my custom locator use the MDagModifier::createNode or am I on the wrong track?
Once the locator are created, how do I get hold of it's transformation matrix or similar so that it I can translate/rotate it in code (based upon the result from the tracking part of the plugin) ?
Any help would be much appreciated,
Thanks
/R
I'm trying to write a Maya plugin using the c++ api. To make it short, It will track features such as markers from a video or a web cam. For each such marker that are tracked the plugin will create and control a locator in Maya. The plugin is to be used while doing e.g. facial animations by connecting joints or blend shapes to the locators. Now the tracking part is already done and are working just fine, but I'm totaly inexperienced in the black art of Maya plugin programing.
So I have two initial impediments.
How do I add my custom locator(s) to the DAG (or is it DG) programaticly. Is the best way to have my custom locator use the MDagModifier::createNode or am I on the wrong track?
Once the locator are created, how do I get hold of it's transformation matrix or similar so that it I can translate/rotate it in code (based upon the result from the tracking part of the plugin) ?
Any help would be much appreciated,
Thanks
/R
