current scene name or index issue

  • I have an xml with several scenes for as many panos, all in same xml.
    I need for some action to know the current loaded pano, or scene.

    get(xml.scene) returns the name of the first scene that was loaded, for ever.
    I cannot know the name of the scene that is currently loaded.

    Would be actually easier to work with index number than name but that's another smaller problem.

  • Hi,

    get(xml.scene) returns the name of the first scene that was loaded, for ever.

    then there is something strange in your examples... (or your krpano much too old...)

    xml.scene should contain always the name of the current scene,
    and via scene[get(xml.scene)].index you can get its current index,

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!