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

    Render script ties up Cinema till done.

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 208 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 31/07/2012 at 15:38, xxxxxxxx wrote:

      My render script, which renders out frames with the object names as image names, is tying up Cinema till it is done rendering.  Just to be sure, is it possible to work with Cinema while a script is in progress rendering?  I've tried using time.sleep to give the computer a break while rendering, but I still can't work with Cinema till the script is done.  I'm using a Mac.  Is there a solution?

      isRend = c4d.CheckIsRunning(c4d.CHECKISRUNNING_EXTERNALRENDERING)
      while isRend == 1:
          time.sleep(3)
          isRend = c4d.CheckIsRunning(c4d.CHECKISRUNNING_EXTERNALRENDERING)   
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 02/08/2012 at 13:57, xxxxxxxx wrote:

        For such purposes please use a plugin. Scripts are executed in the main-thread (as the gui is) and therefore will block c4d until its executed.

        Cheers, Sebastian

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