You are not logged in.

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,273

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*