Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Callcommand from python within xpresso

    SDK Help
    0
    2
    189
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post