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
    • Admin
    • Login

    pass and userpass in tokensystem [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 370 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 19/01/2016 at 11:11, xxxxxxxx wrote:

      Hi,

      I'm trying to use FilenameConvertTokens to replace all the tokens in my file path but $pass and $userpass aren't getting replaced.

      I'm assuming that I'm not building up my RenderPathData dictionary properly. I'm not clear on what _rBc should be. The docs show that it should be a BaseContainer and the example calls it renderSettings but I'm not sure how to get that information. Currently, I have it set to:

      rpData = {
      	'_doc': doc,
      	'_rData': doc.GetActiveRenderData(),
      	'_frame': doc.GetTime().GetFrame(doc.GetFps())
      }
       
      

      I'm also adding a take if it's supported but that's probably not important to this question.

      Anyways, hopefully someone can point me in the right direction.

      Thanks,
      Eric

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

        On 20/01/2016 at 01:46, xxxxxxxx wrote:

        Hello and welcome,

        the Python API is a copy of Cinema's C++ API so you find also a lot useful information in the C++ documentation, also about the Token System.

        The RenderPathData dictionary is based on the corresponding object in the C++ API: RenderPathData Struct Reference

        So you see the that you could use "_layerTypeName" and "_layerName".

        The "_rBc" BaseContainer should contain the render settings. You can get these settings from the document's RenderData:

          
        renderData = doc.GetActiveRenderData()  
        renderSettings = renderData.GetData()  
        

        Best wishes,
        Sebastian

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

          On 29/01/2016 at 10:01, xxxxxxxx wrote:

          Hello Eric,

          was your question answered?

          Best wishes,
          Sebastian

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

            On 29/01/2016 at 10:03, xxxxxxxx wrote:

            Hey Sebastian,

            Yeah, I was able to figure it out.

            Thanks,
            Eric

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