How to make n no. of scenes in looping?

  • Hi,

    how to make n no. of scenes in looping?
    is there any ready make plug-in for that or some code to write.

    if any one have the code for that please share with me.

    thanks

    --
    Pratiks

  • Hi!
    Look here for auto switch to next scene
    The perfect auto - tour

    And you can use this actions:


    <action name="nextscene"><!-- to stop at last scene use nextscene(stopatlast); -->
    set(cursceneindex, get(scene[get(xml.scene)].index) );
    set(scenecount, get(scene.count) ); add(scenecount, -1 );
    if(cursceneindex LT scenecount,
    add(cursceneindex,1);
    gotoscene( get(scene[get(cursceneindex)].name) );
    ,
    if( %1 != 'stopatlast',
    gotoscene( get(scene[0].name) );
    ,
    );
    );
    </action>

    <action name="prevscene"><!-- to stop at last scene use prevscene(stopatlast); -->
    set(cursceneindex, get(scene[get(xml.scene)].index) );
    set(scenecount, get(scene.count) ); add(scenecount, -1 );
    if(cursceneindex GT 0,
    add(cursceneindex,-1);
    gotoscene( get(scene[get(cursceneindex)].name) );
    ,
    if( %1 != 'stopatlast',
    gotoscene( get(scene[get(scenecount)].name) );
    ,
    );
    );
    </action>

    Hope this help!

  • Hi mindlessboss,

    it works... :)

    but i have two scenarios to call scenes.
    1) 1st scenario--
    let say i have to four scenes. and want them to in continuos loop
    here your code works perfectly fine with "onidle=bombtimer(0);" for each scenes event.
    2) 2nd scenario--
    i am going to call particular single scene from those four scenes using js from html.
    at that time i don't want "onidle=bombtimer(0);" on event for that scene as it is single pano so no need to make it auto-rotate to next scene. so how can i conditionally put "onidle=bombtimer(0);" for particular scene.

    means i have to method in js which calls same scenes of group in continuos loop and other method call the scene from those four but without loop.

    let me know if you have any idea about conditionally show/hide the "onidle=bombtimer(0);".

    thanks

    --
    Pratiks

Jetzt mitmachen!

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