On 24/09/2016 at 12:05, xxxxxxxx wrote:
Cinema 4D Version:
Platform: Windows ;
Language(s) : C++ ;
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)
tag->SetDirty(DIRTYFLAGS_DATA); //Used to update a Tag's AM GUI items
Can/How do we do this in Melange?
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.
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?
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.
On 26/09/2016 at 11:47, xxxxxxxx wrote:
I kinda figured that would be the case. Just wanted to check.