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

    CheckIsRunning()... check preview render?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 381 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 27/09/2008 at 04:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.1 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
      Hi,

      I can easily check if an editor rendering or an external rendering is running, by using the function CheckIsRunning() with the arguments CHECKISRUNNING_EDITORRENDERING and CHECKISRUNNING_EXTERNALRENDERING.

      But how can I find out if a rendering is running that has been triggered by the "Make Preview..." option in the Render menu?

      Greetings,
      Jack

      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 28/09/2008 at 05:16, xxxxxxxx wrote:

        Hi Jack,

        i dont really know an answer to this, but i noticed there's a flag called RENDERFLAG_PREVIEWRENDER in operatingsystem.h (510), maybe this would somehow help you to achieve what you want ?
        didnt try out anything with it tho..

        hth,
        Daniel

        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 28/09/2008 at 05:25, xxxxxxxx wrote:

          Hey, that may be. Thanks, I'll try that!

          Cheers,
          Jack

          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 28/09/2008 at 06:46, xxxxxxxx wrote:

            Hm, unfortunately, that wasn't it.
            But thanks anyway, it was worth a try 😉

            Greetings,
            Jack

            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 29/09/2008 at 01:16, xxxxxxxx wrote:

              Afaik you can't. May I ask why you want to check for a preview render?

              cheers,
              Matthias

              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 29/09/2008 at 09:45, xxxxxxxx wrote:

                Of course 😉

                in my plugin object I calculate some data which I hide in the containers of my objects (also see this thread).

                My shader evaluates that data during rendering to create the shading.

                But the calculation of the data costs time, thus slowing down the editor performance when working with huge amounts of objects. So I want the data to be only calculated when rendering. That includes editor rendering, external rendern, preview rendering.

                A flag CHECKISRUNNING_PREVIEWRENDERING would be nice 😉

                Greetings,
                Jack

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