THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/02/2011 at 14:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
I'm trying to change the CenterAxisTool settings through a menu plugin. But It's not working.
Here's my code:
BaseContainer bc;
BaseObject *op = doc->GetActiveObject();
ModelingCommandData mcd;
mcd.bc = op->GetDataInstance();
mcd.doc = doc;
mcd.op = op;
mcd.flags = MODELINGCOMMANDFLAGS_CREATEUNDO;
bc.SetBool(MDATA_CENTER_CENTER,TRUE);
if (!SendModelingCommand(ID_MODELING_CENTER_TOOL, mcd)) return FALSE;
EventAdd();//Update all the changes
And here's the MDATA options listed in the toolcenter.h file I'm using so you guys don't have to look them up.
There's are a lot more options in the tool that aren't listed in this .h file. So I'm assuming that they aren't available through the API?
enum
{
MDATA_CENTER_XAXIS = 1000,
MDATA_CENTER_YAXIS = 1001,
MDATA_CENTER_ZAXIS = 1002,
MDATA_CENTER_NONE = 0,
MDATA_CENTER_NEG = 1,
MDATA_CENTER_POS = 2,
MDATA_CENTER_CENTER = 3,
MDATA_CENTER_
};
Anyone know what I'm doing wrong?
-ScottA