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

Wednesday, December 4th 2019, 12:57pm

Dynamic hotspot

Can I use an action to dynamically add another folder to the hotspot's image path to dynamically change it?

Tuur

Sage

Posts: 3,230

Location: Netherlands

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

  • Send private message

2

Wednesday, December 4th 2019, 1:30pm

Hi,

yes of course that is possible.
Can you be a bit more specific? so we can help you on the code.

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

3

Thursday, December 5th 2019, 1:22am

if(_lang == 'ko',
set(hotspot.tag, ko);
show_hotspots();

if(hotspot.tag == 'ko',
trace('url=', get(hotspot.url));
,
);
,
if(_lang == 'en',
,
);
);





I want to get the path of the entire hotspot of the current scene and manipulate part of the path.

The current hotspot path is
<hotspot name = "pension_001" url = "bar_content.png tag =" "/>

I want to put the folder path part before bar_content.png using action.

4

Thursday, December 5th 2019, 2:30am

if(_lang == 'ko',
set(hotspot.tag, ko);
show_hotspots();

if(hotspot.tag == 'ko',
for(set(i,0), i LT hotspot.count, inc(i),
set(hotspot[get(i)].visible,true);
calc(path, 'img/english/' + hotspot[get(i)].url);
set(hotspot[get(i)].url, get(path));
);
,
);
,
if(_lang == 'en',
,
);
);

This is done by adding the folder path before the path of the hotspot. thank you. *smile*