THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/07/2011 at 11:36, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
I'm having a problem with the SetPoint tool in a Coffee script(not a plugin).
I have to click in the main scene view for it to execute.
Here's the code:
var obj = doc->GetActiveObject(); CallCommand(200000065); // Activate the Set Point Value tool tool()#MDATA_SETVALUE_SETX=1; tool()#TEMP_MDATA_SETVALUE_VAL_X = 300; CallButton(tool(),ID_MODELING_SETVALUE_TOOL); obj->Message(MSG_UPDATE); DrawViews(DRAWFLAGS_ONLY_ACTIVE_VIEW|DRAWFLAGS_NO_THREAD|DRAWFLAGS_NO_REDUCTION|DRAWFLAGS_STATICBREAK); EventAdd();
I've added the usual things to force C4D to update(Message, DrawViews, EventAdd) but they aren't working.
Is there some other way I can tell C4D to update and execute the tool when my script is executed?