pass and userpass in tokensystem [SOLVED]



  • 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



  • 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



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

    Hello Eric,

    was your question answered?

    Best wishes,
    Sebastian



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

    Hey Sebastian,

    Yeah, I was able to figure it out.

    Thanks,
    Eric


Log in to reply