THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/04/2006 at 03:30, xxxxxxxx wrote:
Cinema 4D Version: 9.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
I am trying to use the Duplicate_Tool command in COFFEE to duplicate a target Cube object and make 8 copies. Together with this process, I want to arrange the Cube copies in Circle mode. I tried to check in toolduplicate.h to check if I am allowed to do that but I am redirected to _toolarrange.h. _I tried using the following code which is activated by a button on my plugin dialog. The Duplicate_Tool works fine giving me 8 copies of the Cube object, but I cannot seem to get the Circle mode working. I tried using SendModelingCommand(ID_MODELING_ARRANGE_TOOL,...) as well but it does not work. Here's the code:
var obj = vDoc->FindObject("Cube");
var bc = new(BaseContainer);
bc->SetData(MDATA_ARRANGE_CIRCLE_START, 0 );
bc->SetData(MDATA_ARRANGE_CIRCLE_END, 360 );
bc->SetData(MDATA_ARRANGE_CIRCLE_USE_MOVE, true );
bc->SetData(MDATA_ARRANGE_CIRCLE_ALIGNTANGENTIAL, true );
bc->SetData(MDATA_ARRANGE_CIRCLE_USE_ROTATION, true );
var result = SendModelingCommand(ID_MODELING_DUPLICATE_TOOL,vDoc,obj,bc,MODIFY_ALL);
I would appreciate if someone could help me. Look forward to learn from everyone.
Thank you very much.