You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, May 3rd 2011, 1:16pm

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

2

Tuesday, May 3rd 2011, 1:17pm

Hi,

i have n no. scenes and want to play the next scene automatically after previous pano complete the 360 degree spin.

thanks

--
Pratiks

mindlessboss

Professional

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

3

Tuesday, May 3rd 2011, 1:22pm

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!
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

4

Tuesday, May 3rd 2011, 1:47pm

Hi mindlessboss,

thanks for your quick reply.
i will try to implement it.

thanks

--
Pratiks

5

Tuesday, May 3rd 2011, 2:00pm

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

6

Thursday, May 5th 2011, 7:38am

Hi All,

any answers?

thanks

--
Pratiks

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

7

Thursday, May 5th 2011, 5:19pm

you can change any previously defined parameter using the set command.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Similar threads