THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/02/2011 at 16:22, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform:
Language(s) : C++ ;
---------
I've had this long standing problem with the Structure->Mirror tool with Coffee. And I'm getting the same results now that I'm using C++.
The problem is only the execution part works. But none of the various parameters allow me to change them.
I don't know if I'm writing the code wrong. Or if it's a bug.
All I know is that I can use the same code structure on other things and it works fine.
BaseObject* op = doc->GetFirstObject();
BaseContainer bc;
ModelingCommandData mcd;
mcd.bc = &bc;
mcd.doc = doc;
mcd.op = op;
mcd.flags = MODELINGCOMMANDFLAGS_CREATEUNDO;
mcd.mode = MODELINGCOMMANDMODE_POINTSELECTION; // points option
//mcd.mode = MODELINGCOMMANDMODE_POLYGONSELECTION; // polygons option
//mcd.mode = MODELINGCOMMANDMODE_ALL; // All option
bc.SetLong(MDATA_MIRROR_SYSTEM, 1);// Set World option----------->No Response
bc.SetLong(MDATA_MIRROR_PLANE, 2);// Set XZ option--------------->No Response
bc.SetBool(MDATA_MIRROR_ONPLANE, TRUE);//Enable symmetry option-->No Response
bc.SetData(MDATA_MIRROR_VALUE, 100);// Set value option---------->No Response
bc.SetBool(MDATA_MIRROR_WELD, TRUE); //Enable Weld option-------->No Response
if (!SendModelingCommand(MCOMMAND_MIRROR, mcd)) return FALSE;
EventAdd();//Update all the changes
BTW: I've also tried using WORLD & XZ as parameters in the two SetLong parameters. And they still won't work for me. And it's the same result no matter which mode(points,polygons,all) I use.
Is this a bug?
Or is it user error?
-ScottA