You are not logged in.

Ukrajinec

Beginner

  • "Ukrajinec" started this thread

Posts: 33

Location: Ukraine, Lviv

  • Send private message

1

Friday, December 21st 2012, 9:23am

What the .xml is loaded now? (SOLVED)

How to know what the .xml-file is loaded now?
I need to do something that:

Quoted


if is loaded (1.xml) ->> action#1
if is loaded (2.xml) ->> action#2
With regards, Igor.

This post has been edited 1 times, last edit by "Ukrajinec" (Jan 8th 2013, 12:56pm)


2

Saturday, December 29th 2012, 1:00pm

Hi,

the 'xml.url' variable contains the path of the current xml:
http://krpano.com/docu/actions/#xml.url

e.g. to check if the path contains '1.xml' or '2.xml':

Source code

1
2
3
4
indexoftxt(found, get(xml.url), '1.xml');
if(found GE 0, action1(); );
indexoftxt(found, get(xml.url), '2.xml');
if(found GE 0, action2(); );


Best regards,
Klaus

Ukrajinec

Beginner

  • "Ukrajinec" started this thread

Posts: 33

Location: Ukraine, Lviv

  • Send private message

3

Tuesday, January 8th 2013, 12:55pm

Many thanks, Klaus! *smile*
With regards, Igor.