• Hi !

    I'm a beginner, so not sure to be at the good place to ask this, but...

    On my current tour, I have a button that calls many "lookto" actions. This button allows user to see different things in the picture in a specific order.
    My problem is that it's a bit too long for people who already saw it once. So I would like to completly stop all those "lookto" actions if user is doing anything with mouse, keyboard or touchscreen...

    I found this "Stoplookto()" code but I don't know how to use it...

    Inside my PTP xml files I have this :

    Code
    <events name="autotourevents"onnewpano="autotouronnewpanoaction"onmousedown="autotouronuseraction"onkeydown="autotouronuseraction"keep="true"/>

    And this :

    Code
    <action name="autotouronuseraction">if (tour_autotourenabled,resetautotourvariables(););</action>

    So I tried to add "stoplookto()" like this :


    Code
    <action name="autotouronuseraction">stoplookto();if (tour_autotourenabled,resetautotourvariables(););</action>

    This doesn't work so I think I will need your help to understand how to use it correctly...

    Thank you to show me the way *smile*

    Cyril

  • Thank you for your help !

    This the code I'm using :

    Code
    if (layer[togglebutton].state == true, mainloadscene(pano42);
    wait(blend);
    lookto(-134,8,90,smooth(50,10,10));
    lookto(-50,26,45,smooth(50,10,10));
    lookto(57,59,90,smooth(50,10,10));
    lookto(17,23,30,smooth(50,10,10));
    mainloadscene(pano603););


    So shall I add ",null , nonblocking, ?
    Like this ?

    Code
    lookto(-134,8,90,smooth(50,10,10),null , nonblocking);

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!