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
    • Recent
    • Tags
    • Users
    • Login

    Render progressbar

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 156 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 24/06/2013 at 09:03, xxxxxxxx wrote:

      I have a plugin which triggers a render preview window using:
      res = documents.RenderDocument(doc, rd, renderbmp, c4d.RENDERFLAGS_EXTERNAL)

      To track progress I set an timer event (1 sec) using:
                  timelap = 1000
                  self.SetTimer(timelap)

      And in Message I receive a trigger every second.
          def Message(self, msg, result) :           
          
              if (msg.GetId() == c4d.BFM_TIMER_MESSAGE) :
                  doc = documents.GetActiveDocument()
                  print "Time: ", time.time()

      So far so good.
      However, during Render I do not get triggers through Message.
      Is Render not done in another thread?

      How to get Messages / Events, even when rendering?

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

        On 25/06/2013 at 13:00, xxxxxxxx wrote:

        Ok, the principles are now clear to me.
        I got the answer by searching on different keywords. Mainly threading.
        Most of the information I got from this post: https://developers.maxon.net/forum/topic/7090/8038_exception-with-thread-rendering&KW=c4dthread&PID=33403#33403

        _<_o:_<_o:p_>_o:p>

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