0

Accessing the data of the property in a .rv(gto) file

Hi,

I am having this issue where I am trying to access the data in a property of a .rv file, but instead I get a "True" boolean instead. e.g:

Here is a short sample of the .rv file:

================================

GTOa (4)

rv : RVSession (1)
{
    session
    {
        string viewNode = "defaultSequence"
        int marks = [ 1 20 50 80 100 ]
        int[2] range = [ [ 1 100 ] ]
        int[2] region = [ [ 20 50 ] ]
        float fps =  24
        int realtime =  1
        int currentFrame =  30
    }
}

==========================================

This is my python code:

    myGtoFile = gtoContainer(rv_file)

    for obj in myGtoFile:
        if "session.viewNode" in obj:
            print obj.session.viewNode()

 

I am trying to get "defaultSequence" from the viewNode property.

I am using the gtoContainer class and I am following the example provided by the doc string.

 

Thanks!!!

3 comments

  • 0
    Avatar
    Jon Morley

    Hi Michor,

    I am not sure why that is not working, but I get a similar error. I think I have found a work around though. Can you please try the following instead:

    myGtoFile = gtoContainer(rv_file, False)

    Please let us know if that helps.

    Thanks,
    Jon

  • 0
    Avatar
    Michor

    Thanks so much.  That actually works!!

  • 0
    Avatar
    Jon Morley

    Great!

Please sign in to leave a comment.