Piotr,
Tried the Autotour feature but my subject is really in just a part of the pano and I was working on a solution to get it to switch as soon as the autotour gets to a certain point instead of having to wait for it to go all the way around. I got it close to working but the loadscene() function doesn't change the Pano title and I think the MERGE setting messes with the start_view setting I set on each pano when it goes to the next scene. Does CMS4VR have a custom function I should call to get to the next scene (the same as the next arrow on the navigation) instead of loadscene()? Here is what I added to the user_gui.xml file.
https://tours.dependablepaint.com/black-bull/1/
<krpano>
<project_settings_global
autotour_isset_to="true"
autotour_speed_isset_to="10"
dynamic_autorotate_horizon="100"
/>
<events onnewpano="autotour_range();" if="editmode != true" />
<action name="autotour_range">
def(s_name, string, get(scene[get(xml.scene)].name));
if (s_name === "scene_p1", set("events.onviewchanged", range_event(70,75); ); );
if (s_name === "scene_p3", set("events.onviewchanged", range_event(105,110); ); );
if (s_name === "scene_p4", set("events.onviewchanged", range_event(45,50); ); );
if (s_name === "scene_p6", set("events.onviewchanged", range_event(-50,-45); ); );
if (s_name === "scene_p7", set("events.onviewchanged", range_event(-50,-45); ); );
if (s_name === "scene_p8", set("events.onviewchanged", range_event(-105,-100); ); );
if (s_name === "scene_p9", set("events.onviewchanged", range_event(100,105); ); );
if (s_name === "scene_p10", set("events.onviewchanged", range_event(0,5); ); );
</action>
<action name="range_event">
set(inside,false);
if(view.hlookat GT %1, if(view.hlookat LT %2, set(inside,true); ); );
if(lasttime_inside === null, copy(lasttime_inside,inside));
if(lasttime_inside != inside,
if(inside,
set("events.onviewchanged", null);
nextscene();
);
copy(lasttime_inside,inside);
);
</action>
<action name="nextscene">
add(nextsceneindex, get(scene[get(xml.scene)].index),1);
if(nextsceneindex LT scene.count, loadscene(get(scene[get(nextsceneindex)].name), null, MERGE, BLEND(0.7)); );
</action>
</krpano>
Display More