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

    Output File path for the batch rendered asset

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 261 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 01/09/2016 at 02:18, xxxxxxxx wrote:

      Hi,

      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.
      Thanks
      n_goel

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

        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.

        best wishes,
        Sebastian

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