How to access current panoramagroup or alternatives

  • Hi,

    I'm changing a fellow code created with Panotour which uses a panoramagroup element. He defines many groups with this, like:

    Code
    <panoramagroup name="panogroup13"
                     mainscene="pano10"
                     color="807100"
                     alpha="1"
                     thumburl="%FIRSTXML%/capela_01_10/thumbnail.jpg"
                     floorplanurl=""
                     titleid="panogroup13_title"
                     descriptionid=""/>

    I'm trying to change the sound played when user moves from one group to another, but can't access this variable. The closer I guess I've come is to obtain "[object object]" when I print "get(panoramagroup)". I've also found a specific group object and can print its attributes with "get(panoramagroup[0].name)" but didn't find how to discover which is the actual group.

    If I can't do this I will probably make longs "if"s with the scene names, not using those groups.

    The krpano used is 1.19.pr4

    Thank you.

Participate now!

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