Is it possible to disable the Virtual Tour Skin with an action?

  • Hi,

    Zitat

    Is it possible to disable the Virtual Tour Skin with an action?

    everything is possible
    all skin elements are normal krpano xml elements and can be modified or changed or course,

    but - with 'disable' - do you mean to hide it or to remove all skin elements?

    hiding or showing would be pretty simple - you would only need to hide the 'skin_scroll_window' and 'skin_control_bar' elements,
    e.g.

    Code
    <action name="hide_vtourskin">
      set(layer[skin_scroll_window].visible,false);
      set(layer[skin_control_bar].visible,false);
    </action>


    and to show it again:

    Code
    <action name="show_vtourskin">
      set(layer[skin_scroll_window].visible,true);
      set(layer[skin_control_bar].visible,true);
    </action>


    full removing is also possible, but a bit more work - there all skin elements need to be removed by calling removelayer() or removeplugin() and additionally also the skin events need to be removed,

    e.g. here an example action that removes all elements, where the name begins with 'skin_' (that should be all skin related elements):

    Code
    <action name="rnskin">
      set(events[skin_events].name, null);
      for(set(i,0), i LT layer.count, inc(i), 
    	copy(layername, layer[get(i)].name);
    	subtxt(namestart, get(layername), 0, 5);
    	if(namestart == 'skin_', removelayer(get(layername)); dec(i); );
      );
    </action>
    Zitat

    Is it possible to disable a url="demo/krpano.xml" <include />?

    Yes, just remove or comment it out.

    Best regards,
    Klaus

Jetzt mitmachen!

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