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

Tuesday, April 7th 2015, 7:59pm

display an image on my tour only when in a particular scene

Hello colleagues , I need to display an image on my tour only when in a particular scene, as do that ?.

For example , if I'm in the scene 1 , shows the image 1 .

Tuur

Sage

Posts: 3,173

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Tuesday, April 7th 2015, 9:53pm

Hi,
You can try

Source code

1
if(scene[get(xml.scene)].name == scene_1, showpic());


Showpic is an action in this case.
You could replace it with something like set(layer[pic].visible, true);
Or what ever.
Hope it helps

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

3

Monday, April 13th 2015, 3:03pm

Hi,

you could also just define that image only inside that scene - or - use the onstart event of that scene to display it via code...

Best regards,
Klaus