Callcommand from python within xpresso

On 18/09/2013 at 12:33, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   13 
Platform:   Windows  ;   
Language(s) :      XPRESSO  ;  PYTHON  ;

---------
I want to do a callcommand - c4d.CallCommand(17013) # Material - from a python node within xpresso.
It does not seem to work.
Is it possible to do a callcommand from within a python node in xpresso?
I want to change the manger using xpressso.

Pim

On 18/09/2013 at 13:04, xxxxxxxx wrote:

Hi Pim,

it is not possible to invoke a CallCommand() call from a Python Node. The CallCommand() function
must be called from the main thread, just like GUI operations. You can however do this from a C++
XPresso Plugin (still not from the calculation procedure, but right at the next call you receive in the
main thread).

Best,
-Niklas