THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/11/2003 at 06:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 7.3
Platform: Windows ; Mac ;
Language(s) : C.O.F.F.E.E ;
---------
I can't get the current state to object modeling command to work. It returns 1 after execution, so all is supposedly well, but there's no effect in the doc! Here's the code:
oMenuPlugin::Execute(doc)
{
var op=GetActiveObject(doc); if (!op) return FALSE;
var bc=new(BaseContainer);
SetMousePointer(MOUSE_BUSY);
doc->StartUndo();
doc->AddUndo(UNDO_OBJECT_REC,op);
var test = SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,NULL,op,bc,MODIFY_ALL);
println(test);
doc->EndUndo();
SetMousePointer(MOUSE_NORMAL);
GeEventAdd(DOCUMENT_CHANGED);
}