You are not logged in.

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

1

Sunday, October 13th 2013, 6:23pm

Change of scene

Probably a beginners question?
When changing from one scene to another I can close an accidentally left-open hotspot thus:

onstart="set(hotspot[tess-spot].visible,0);"

How do I ensure that several are closed? I've tried set(hotspot[tess-spot][mod-spot]
& set(hotspot[tess-spot,mod-spot] but that doesn't work...

Thanks

JL

tonesh

Trainee

Posts: 75

Location: Rome

Occupation: Photographer

  • Send private message

2

Sunday, October 13th 2013, 9:00pm

Hi John,
make an action like this:

Source code

1
2
3
4
5
<action name="hide_hotspots_pano01">
set(hotspot[tess-spot].visible,false);
set(hotspot[mod-spot].visible,false);
set(hotspot[xyz-spot].visible,false);
</action>


then put it on the "onstart":

Source code

1
onstart="hide_hotspots_pano01();" 


this should work. And you can make an action specific for each pano.

But two questions:
a) if you need to hide ALL hotspots, why you don't want to use the variable "hotspot.visible"?

Source code

1
onstart="set(hotspot.visible,false);"


b) What do you mean with: "When changing from one scene to another I can close an accidentally left-open hotspot"
How is possible that you have a left-open hotspot? if a hotspot is visible in another pano, probably you have set in the hotspot
the "keep" attribution to "true".

Toni

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

3

Sunday, October 13th 2013, 10:19pm

grazie mille!

Hi Tony
thanks - 'keep' was the problem!
Now no need of the rest.

JL (from the slow learners department)