Reading vray or physical render settings, Python



  • On 26/02/2014 at 13:12, xxxxxxxx wrote:

    Hello all,

    I'm, very simply, checking which if any of the vray multi-passes are enabled, but for the life of me I can't figure out how to access anything within the VrayBridge settings.

    Basically: how do you read settings/info within any of the Effects in a RenderData object? (Sketch and Toon, Physical, etc.)

    Thanks a ton!

    Whithers

    (r13)



  • On 26/02/2014 at 13:31, xxxxxxxx wrote:

    Aaaand I finally got it.

    For anyone else who might search in the future, I went:

    renderData = doc.GetActiveRenderData()

    effect = renderData.GetFirstVideoPost()
    while effect.GetTypeName() != "VrayBridge" ##I haven't tested from here, but you get the idea
    effect = effect.GetNext()


Log in to reply