Sie sind nicht angemeldet.

light_line

Fortgeschrittener

  • »light_line« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

1

Sonntag, 5. Mai 2019, 19:06

problem with managing hotspot programmatically

Hi
when I add/remove a hotspot in a scene with actions, everything works perfectly but when I change the scene and then return to the edited scene, all changes are disappeared!
there is no sign from the added hotspot and removed hotspots are returned.
what is wrong?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Montag, 6. Mai 2019, 10:08

Hi,

Zitat

what is wrong?


nothing (i think). ;-)

Not fully sure about your specific case but...
Because of the hotspots most possibly have no keep="true", the added ones will be gone after switching scene. The removed ones will re-appear. I think you should save the 'status', for example to an array. Build the hotspots on scene load.

Tuur *thumbsup*

light_line

Fortgeschrittener

  • »light_line« ist der Autor dieses Themas

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

3

Montag, 6. Mai 2019, 20:04

Not fully sure about your specific case but...
Because of the hotspots most possibly have no keep="true", the added ones will be gone after switching scene. The removed ones will re-appear. I think you should save the 'status', for example to an array. Build the hotspots on scene load.
thanks for your response.
I think it is the only solution *unsure*