Sie sind nicht angemeldet.

1

Dienstag, 3. Mai 2011, 13:16

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

Dienstag, 3. Mai 2011, 13:17

Hi,

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

thanks

--
Pratiks

3

Dienstag, 3. Mai 2011, 13:22

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

Dienstag, 3. Mai 2011, 13:47

Hi mindlessboss,

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

thanks

--
Pratiks

5

Dienstag, 3. Mai 2011, 14:00

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

Donnerstag, 5. Mai 2011, 07:38

Hi All,

any answers?

thanks

--
Pratiks

Beiträge: 1 850

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

7

Donnerstag, 5. Mai 2011, 17:19

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