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.

Fabrice

Beginner

  • "Fabrice" started this thread

Posts: 16

Location: Paris

Occupation: Photographer

  • Send private message

1

Friday, October 30th 2009, 11:39am

is it possible to hide a hotspot itself????

i tried to hide a hospot when i click on it.... but it doesn't work...

<hotspot name="spot5"
onclick="set(state,autoratate.enabled);set(autoratate.enabled,false);addhotspot(spot6);
set(hotspot[spot6].url,test sivory completbetadata/spots/bulle in.swf);
set(hotspot[spot6].ath,-6.6859);
set(hotspot[spot6].atv,-6.1534);
set(hotspot[spot6].fov,6);
set(hotspot[spot6].scale,1);
set(hotspot[spot6].enable,false);
set(hotspot[spot6].handcursor,false);
set(hotspot[spot6].distorded,true);
set(hotspot[spot6].zorder,2);
addhotspot(beamer);
set(hotspot[beamer].url,video/video.swf);
set(hotspot[beamer].ath,-6.6859);
set(hotspot[beamer].atv,-6.1534);
set(hotspot[beamer].fov,6);
set(hotspot[beamer].scale,1);
set(hotspot[beamer].enable,false);
set(hotspot[beamer].handcursor,true);
set(hotspot[beamer].distorded,true);
set(hotspot[beamer].zorder,3);
hotspot[spot5].vible, false"
url="test sivory completbetadata/spots/bulle.swf" ath="-6.6859" atv="-6.1534"
zorder="1"
/>



i want the hotspot[spot 5] disepear when the other hospots are cretaed....
i didn't understand the problem.... cause the other hotspot are created as i want....

thanks

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Friday, October 30th 2009, 1:11pm

Hi Fabrice,

hotspot[spot5].vible, false ---> hotspot[spot5].visible, false *attention* *g*

SAlut.

Fabrice

Beginner

  • "Fabrice" started this thread

Posts: 16

Location: Paris

Occupation: Photographer

  • Send private message

3

Friday, October 30th 2009, 1:23pm

oui michel je me suis aperçu de ça... mais rien n'y fait ce n'est pas ça....


yes, i noted this mistake.... but it doesn't work anymore....

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Friday, October 30th 2009, 1:49pm

Hi Fabrice,

Must be a syntax issue...
Try this: hotspot[spot5].visible='false'
or this: set(hotspot[spot5].visible,false)

SAlut.

Fabrice

Beginner

  • "Fabrice" started this thread

Posts: 16

Location: Paris

Occupation: Photographer

  • Send private message

5

Friday, October 30th 2009, 2:33pm

hi Michel....

it works with the second solution...
thanks..

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

6

Friday, October 30th 2009, 5:42pm

onclick="set(state,autoratate.enabled);set(autoratate.enabled,false);addhotspot(spot6);

that lines seems wrong to me. first action has a comma then a period the 2nd is period them comma. one of them is wrong. maybe i am wrong :)

Fabrice

Beginner

  • "Fabrice" started this thread

Posts: 16

Location: Paris

Occupation: Photographer

  • Send private message

7

Friday, October 30th 2009, 5:52pm

this is the xml generated by autopano for a hospot...

i didn't write it... i considered it as correct...

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

8

Friday, October 30th 2009, 6:08pm

Hi VN2009,

The 2 actions are correct.... ;-)
set( Variable , Value ); see here: http://krpano.com/docu/actions/#set

The first one sets a custom variable named state with the value of autoratate.enabled (possible value are: null, true or false)
The second one sets autoratate.enabled to false.

Does not know the utility of the state custom variable...

SAlut.