You are not logged in.

360boy

Intermediate

  • "360boy" started this thread

Posts: 224

Location: Mexico City

Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Send private message

1

Saturday, June 1st 2013, 10:02pm

Geting actual <scene> properties

Hello there, I'm working on a tour with multiple scenes and I'd like to know if there is a way to get the actual (current) scene properties, like: get(scene.name), get(scene.lat), etc.

I know that using get(scene[scenenumber].property) works but the problem is still to find out the current scene number, so I'd like to know if there is a much direct way of referring to actual scene properties.

Thanks in advance.

Luis

2

Monday, June 3rd 2013, 1:04pm

Hi,

the name of the currently loaded scene is available via the xml.scene variable.

So you can access the current <scene> element via - scene[get(xml.scene)].

e.g.

Source code

1
get(scene[get(xml.scene)].lat)


Best regards,
Klaus

360boy

Intermediate

  • "360boy" started this thread

Posts: 224

Location: Mexico City

Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Send private message

3

Monday, June 3rd 2013, 5:31pm

Thanx Kalus, this is exactly what I was looking for.

Best regards

Luis