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*

  • 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*

  • 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*

  • 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/PTPV2kolorFINA…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*

  • Hi,

    maybe try it in such way:


    Best regards,
    Klaus

  • 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*

    Edited once, last by Destiny (September 1, 2015 at 11:48 PM).

  • 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*

Participate now!

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