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

Saturday, September 8th 2012, 7:19pm

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

Good afternoon.
I was wondering if any of these possible ahacer two issues.
Is it possible to disable the Virtual Tour Skin with an action?
Is it possible to disable a url="demo/krpano.xml" <include />?

2

Sunday, September 9th 2012, 12:34pm

Hi,

Quoted

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.

Source code

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

and to show it again:

Source code

1
2
3
4
<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):

Source code

1
2
3
4
5
6
7
8
<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>


Quoted

Is it possible to disable a url="demo/krpano.xml" <include />?
Yes, just remove or comment it out.

Best regards,
Klaus