Stop lookto on user click

  • Hi everybody,

    The panorama start at this position :

    onstart="lookat(50,18,97);

    Then the folowing actions take place:

    <action name="OnLoadComplete">
    wait(blend);
    wait(1);
    lookto(-66,29,90,smooth(100,20,50));
    set(autorotate.enabled,true);
    </action>

    I would like the lookto to be stopped when a user click in the panorama... is it possible ?


    I currently use this clicked action which is working:

    <action name="Clicked">
    set(autorotate.waittime,"5");
    </action>

    I tried to put stopall(); but it doesn't stop the lookto action.


    Thanks.
    Maxime

  • Hi, since i have used add hotspot for video distorted hostop the oninterrupt(break) does not work anymore, for look to or for tween, i have tested all the options

    even this one



    or the most simple

    Quote


    <action name="tweenintro">
    oninterrupt(break);
    lookto(70,5,100,tween(easeInOutCubic,10),true,true) ;
    </action>


    the on interrupt breakall does not work to.


    i have no solution


    Thank you for your lights


    JPC

    *cry*

  • Hi,

    the oninterrupt works only on actions that are blocking the user interface,
    but the tween without WAIT for donecall doesn't block it,
    and the lookto call with true for non-blocking doesn't block it too,

    that means either try it that way - by adding a wait() after the tweens:

    or in your the most simple case just without nonblocking=true:

    Code
    <action name="tweenintro">
      oninterrupt(break);
      lookto(70,5,100,tween(easeInOutCubic,10),true,false) ;
    </action>

    best regards,
    Klaus

  • Thank you for your answer, it is very clear, it works perfectly when i use standard distorted video hotspot but it doesn't work when i use addhotspot instead.

    In fact in need to use add hotspot to manage the video downloading order, so…

    maybe there is an other reason but i don't think so.

    i can send you my code if you have the time to have a look.

    best regards

    JPC

  • to be more precise

    when i use lookto the interface wait the lookto is finished to addhospot.

    when i use tween with wait the tween simply doesn't work

    when i use tween without wait the tween work but without interrupt off course.


    JPC

  • Sorry for the delay, thank you

  • Ok, thank you, its working better, and i understand better but i have another problem with this intro, when i interrupt, the tween apha from the intro interrupt too, and i don't understand why because there is only tween view in the interrupt action.

    an other limitation is that the wait have to be finished to begin the "bienvenu" video.


    do you have a solution for this two questions.


    Thank you very much


    the link


    http://www.camus.pro/vtourchauvin/tour.html

  • Hi,

    all following actions after the 'oninterrupt' will be interrupted,

    to avoid that reorder the actions or split the action into different parts and call the actions that should happening oninterrupt too in the call that will be defined in the oninterrupt(...here...) action,

    best regards,
    Klaus

  • Thank you for your answer, it works,and its clear, https://krpano.com/forum/wbb/wcf/images/smilies/smile.png

    I have an other question i hope more interesting for you, when i change the view with a load scene and a blend merge, the video distorted hotspot fixe on the beginning from the blend,

    do you think there is a way the video is playing to the end of the blend, without keeping the same view. It is really embarrassing.

    Tell me if my english and my question is not understandable.

    if(understandable
    ,thank you in advanced for your answer);


    JPC

  • ok

    i am in a pano with a video distorded hotspot playing, i want a kind of cutting plane, with a look at blend and merge like this

    loadscene(scene_ericchauvin1,view.hlookat=150&view.vlookat=-10&view.fov=80,MERGE,BLEND(2))


    the problem is that the video stop at the begining of the merging blend, the sound is ok but the picture fixe,

    could it possible to prevent this.


    Thank you


    JPC

Participate now!

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