You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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