You are not logged in.

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

1

Tuesday, August 25th 2015, 12:41am

Call Action during 'Wait'

Hi...

Does anyone know how I can call an action, for example, Auto open an image, on 'wait' - pause rotation.. Then Auto close that image after 'wait' time is over and rotation continues....????

Thank you

Destiny..
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

2

Thursday, August 27th 2015, 6:00pm

Hi,

the wait action blocks everything:
http://krpano.com/docu/actions/#wait

Use the delayedcall action instead:
http://krpano.com/docu/actions/#delayedcall

Best regards,
Klaus

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

3

Friday, August 28th 2015, 6:37am

Hi Klaus..

Well that is really useful information.... Makes a lot of sense too...

I will give that a go.. Thank you.. *smile*

Destiny..
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

4

Friday, August 28th 2015, 7:03am

Well.. I have the 'wait' working as I like it, but as you said it stops everything else including other media from loading during the 'wait' time..


mainloadscene(pano10);

lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
wait(6);


So I tried this among other things.. I am guessing it must be wrong.. since it does not work...

mainloadscene(pano10);

lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
delayedcall(5.0, lookto() );


Destiny..
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

5

Friday, August 28th 2015, 7:15am

Hi,

what are you trying to do?

The lookto() without any parameters wouldn't do anything.

Best regards,
Klaus

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

6

Friday, August 28th 2015, 7:43am

Hi Klaus... Something quite cool if it works..

I am trying to get media such as an image and later a Media Box, to open at the beginning of the Wait Time then auto close when the Wait time has expired... This process is repeated according to the number of Waits in the Tour. This works really nicely but I cannot get other media to open during the Wait times..

http://www.destinyvirtualtours.com/PTPV2…sTour/GoTo.html

Destiny...


<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19">

<!-- ********** -->
<!-- Simple Button -->
<!-- id : button -->
<!-- ********** -->

<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/take-tour_copy.png"
align="topright"
x="10"
y="10"
zorder="1"
visible="false"
onclick="buttonOnClick"
/>
<action name="buttonOnClick">
mainloadscene(pano10);

lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
wait(0);


mainloadscene(pano10);

lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
wait(6);


mainloadscene(pano10);

lookto(19.125000, 54.900000, 90.000000, smooth(100,50,20));
wait(3);


mainloadscene(pano10);

lookto(-134.325000, -45.000000, 69.012249, smooth(100,50,20));
wait(7);


mainloadscene(pano10);

lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));




</action>

<events name="buttonevents"
onTourStart="showbutton();"
hidetourcontrols="hidebutton();"
showtourcontrols="showbutton();"
keep="true" />
<action name="hidebutton">set(layer[button].visible, false);</action>
<action name="showbutton">set(layer[button].visible, true);</action>


</krpano>
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

7

Monday, August 31st 2015, 11:35am

Hi,

maybe try it in such way:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<action name="step1">
  loadscene(...);
  lookto(...);
  delayedcall(6, step2() );
</action>

<action name="step2">
  loadscene(...);
  lookto(...);
  delayedcall(5, step3() );
</action>

<action name="step3">
  ...
</action>

Best regards,
Klaus

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

8

Tuesday, September 1st 2015, 9:24am

Thank you Klaus for your help.. I will try and get it working..

Destiny...
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

9

Tuesday, September 1st 2015, 10:39am

Well Klaus.. I am not getting any errors which is good but I am not getting any 'delay' periods either..

I tried a few versions until I had no errors..

Destiny..



<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19">

<!-- ********** -->
<!-- Simple Button -->
<!-- id : button -->
<!-- ********** -->

<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/take-tour_copy.png"
align="topright"
x="10"
y="10"
zorder="1"
visible="false"
onclick="buttonOnClick"
/>
<action name="buttonOnClick">

<action name="step1">
mainloadscene(pano10);
lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
delayedcall(6, step2() );
</action>

<action name="step2">
mainloadscene(pano10);
lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
delayedcall(6, step3() );
</action>

<action name="step3">
mainloadscene(pano10);
lookto(19.125000, 54.900000, 90.000000, smooth(100,50,20));
delayedcall(8, step4() );
</action>

<action name="step4">
mainloadscene(pano10);
lookto(-134.325000, -45.000000, 69.012249, smooth(100,50,20));
delayedcall(7, step5() );
</action>

<action name="step5">
mainloadscene(pano10);
lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
delayedcall(7, step1() );
</action>
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

This post has been edited 1 times, last edit by "Destiny" (Sep 1st 2015, 11:48pm)


Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

10

Sunday, September 13th 2015, 8:29am

Here the first Action works and opens a WebsiteViewer fine but how to close the WebsiteViewer on new Action opening..???

The RED code here I tried as a separate Action but I then tried as it is.. Seems to me that it should work but it doesn't.. Any advise or ideas would be appreciated..

Destiny..


<action name="step3">
lookto(19.125000, 54.900000, 90.000000, smooth(100,50,20));
delayedcall(8, step4() );
openWebsite_websiteViewer(eventsPlugin2websiteViewer|websiteViewer|displaywebsitewebsite_url, eventsPlugin2websiteViewer|websiteViewer|displaywebsitewebsite_title);
</action>


<action name="step4">
if(ptplugin[websiteViewer].isOpen, true);
set(ptplugin[websiteViewer].isOpen, false);

lookto(-134.325000, -45.000000, 69.012249, smooth(100,50,20));
delayedcall(7, step5() );
</action>
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

11

Sunday, September 20th 2015, 2:43am

Yaaay!!.. All working... So so so cool.. *g*

http://www.destinyvirtualtours.com/PTP-K…CustomView.html

Destiny..
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*