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

    Wait for Xpresso Action

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 450 Views
    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 Offline
      Helper
      last edited by

      On 11/12/2017 at 09:59, xxxxxxxx wrote:

      Hi,
      in a script i am currently writing, i insert objects into a hierarchy that is changed by an Xpresso Node each time an element is inserted. Unluckily the modifaction of the Xpresso happens after my script, or better said my dialog window, is closed.

      Is there a way to wait for the Xpresso node action to take place, or invoke it in some way?

      Thanks in advance!

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

        On 12/12/2017 at 02:50, xxxxxxxx wrote:

        Hi,

        you can't wait in a script for scene execution (you'd wait infinitely as the script is blocking the main thread), but you can trigger scene execution from within a script using ExecutePasses().
        In this thread Yannick demonstrates how this is done.

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

          On 12/12/2017 at 03:12, xxxxxxxx wrote:

          Thanks! This is exactly was i was looking for!

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