On 01/09/2016 at 02:18, xxxxxxxx wrote:
I am developing a plugin using python sdk. I want to get the path and name of the output file created after rendering is complete using a python sdk method. Is this possible?
I have tried the methods provided in class c4d.documents.batchrender and was not able to get the desired result.
On 02/09/2016 at 01:27, xxxxxxxx wrote:
Hello and welcome,
I'm afraid there is no dedicated function that would return the final file name of a rendering result. Instead you have to access the render settings of the rendered scene yourself and construct the final file name(s) based on these settings.
You can access the RenderData with BaseDocument.GetActiveRenderData(). Then you can read the file name parameter and construct the finale file name accordingly. If the file name uses tokens you have to replace these tokens using the token API (see Token System).
A more detailed description of the RenderData class can be found in the C++ documentation: RenderData Manual.