• Hi all, it's been a while!

    I am looking to have a small pano on my website homepage which the user cannot control, it just loops over a pre-programmed path. In its most basic form it will move to and zoom into a corner of the room, wait for a few seconds then move/zoom to another corner, until it has been to all eight corners and it goes back to the first corner to start all over again.

    I haven't done much XML coding for KRpano but I have tried using tween and wait but it seems to just stop after the first tween.

    I could do with a really simple XML example of tweening, waiting tweening waiting etc. just as a starting point. I enjoy playing with code but I need a push to get me going!

    Also could you let me know if it actually possible to disable user control entirely?

    Thanks for your help.

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

  • Hi Tangent12,

    You can use the lookto(toH,toV,fov,motiontype) action (see here for more info)...
    An example code could be:


    The <krpano> onstart attribute calls a custom action action(self_move_steps)...
    This action has defined the steps where to look to and wait 2 seconds between each lookto()... at the end he call himself ... and so on....

    Zitat

    Also could you let me know if it actually possible to disable user control entirely?

    Code
    <control usercontrol="off" />


    See here for more info about the <control> node...

    SAlut.

  • Hi Michel,

    That is brilliant, I appreciate your help.
    I had read the docs on lookTo and at first glance the code I have looks similiar to your example but mine seemed to stop after the first movement.
    I will try it out after work tonight.

    Thanks again.

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

  • Hi Tangent12,

    I have made a little mistake on the code above ... the name action in the last call it is wrong.... it must be action(self_move_steps); (call to himself).
    So the code is:

    SAlut.

Jetzt mitmachen!

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