I have this folder structure :
Set_01 /
Pano_01
Pano_02
Pano_03
Set_02 /
Pano_01
Pano_02
Pano_03
Pano_04
Set_03 /
Pano_01
Pano_02
My scenes are dynamically created (scene.index stay '0'),
But I can get their name (ex : pano_03_set_01 )
and want to be able to navigate to next scene (ex : pano_01_set_02 ) or previous scenes (ex : pano_02_set_01 )
knowing the name of the current one .
So i need 2 actions move_next(); and move_previous();
i think i have to declare variables like
- the number of panos per set :
set(set_01_count, 3);
set(set_02_count, 4);
set(set_03_count, 2);
- the name of first pano and last panos to compare for looping :
set(first_pano, pano_01_set_01);
set(last_pano, pano_03_set_02);
so logic should be :
-get the current scene name
-extract pano number and set number
-convert to an index ?
-compare to known variables (if pano number LT or GT than set_count, inc +1 (for next) dec -1 (for previous))
-...etc
but i think there a easier way to do that, any skilled people out there ?
thanks
D