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

    Melange_Check if a file is Rendering? [SOLVED]

    SDK Help
    0
    5
    553
    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 24/09/2016 at 12:05, xxxxxxxx wrote:

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

      ---------
      Hi,
      Is there a way that we can use Melange to check if a file is rendering?

      In the C4D SDK. We can do this by overriding the Message() method like this:

          Bool SimpleTag::Message(GeListNode *node, LONG type, void *data)  
        {  
            //Get the tag and assign it to a variable  
            BaseTag *tag = (BaseTag* )node;  
        
            //The rendering message is sent twice  
            //Once before the rendering starts...and again when the rendering is finished     
            if (type == MSG_MULTI_RENDERNOTIFICATION)  
            {  
                GePrint("Is Rendering");  
            }  
        
            tag->SetDirty(DIRTYFLAGS_DATA); //Used to update a Tag's AM GUI items  
            return TRUE;  
        }
      

      Can/How do we do this in Melange?

      -ScottA

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

        On 26/09/2016 at 06:56, xxxxxxxx wrote:

        Hi ScottA, thanks for writing us.

        With reference to your request,  it would be relevant for us to know a little more before providing an answer. In your request isn't 100% clear if you're interested to know, through a Melange standalone app, if a .c4d file is undergoing a rendering process in Cinema or if a .c4d file is currently undergoing a rendering process inside a standalone Melange app.
        Claryfing your aims will help us to be more helpful.

        Best, Riccardo.

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

          On 26/09/2016 at 07:38, xxxxxxxx wrote:

          -I know how to get the render status of a .c4d file(document) that I start rendering myself using a thread with Melange.
          -I know how to get the render status of a file(document) from a plugin while c4d is open

          But I was wondering if there is a way to tell if a specific .c4d file is rendering, which was started rendering by the user. From a 3rd party app using Melange (or some other means) to check the file if it's rendering?

          -ScottA

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

            On 26/09/2016 at 10:03, xxxxxxxx wrote:

            Hi ScottA, thanks for providing us with the additional info.

            Unfortunately, it's not possible to retrieve the rendering status of a generic .c4d file because once the file is opened in CINEMA, due to OS file management, the file is locked to any other process resulting in the fact that no other application can access the file to read or write its data.

            Best, Riccardo

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

              On 26/09/2016 at 11:47, xxxxxxxx wrote:

              Ok. Thanks.
              I kinda figured that would be the case. Just wanted to check.

              -ScottA

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