Sie sind nicht angemeldet.

Jaume

Anfänger

  • »Jaume« ist der Autor dieses Themas

Beiträge: 13

Wohnort: Poland

Beruf: Photogrammetrist

  • Nachricht senden

1

Donnerstag, 31. März 2022, 14:59

How to permanently hide the layer (onstart) for the first scene after return to this scene again

Hi,
I need help with the issue I present below.
The first scene displays the text layer (<layer name="textbox" ...>). When I load the another scene and return to that first scene, the layer shows up again on the screen. How can this layer set visible off (I mean after return to the first scene from any other scene)? I'd like to make this layer visible again on the screen after click on the button but only for the first time when I start the virtual tour this layer must be visible on the screen.Thank you for any support.

2

Donnerstag, 31. März 2022, 17:15

Hello write a layer outside the scene and set keep="false"
Once you remove it, it will not appear again.

Jaume

Anfänger

  • »Jaume« ist der Autor dieses Themas

Beiträge: 13

Wohnort: Poland

Beruf: Photogrammetrist

  • Nachricht senden

3

Donnerstag, 31. März 2022, 17:54

Hello write a layer outside the scene and set keep="false"
Once you remove it, it will not appear again.

Thank you for your advice.
I moved the layer "textbox" outside the scene. I set inside the layer code

Quellcode

1
keep="true"
When I have

Quellcode

1
keep="false"
nothing shows up on the screen. But for the first scene I used the "action" with code:

Quellcode

1
set(layer[textbox].keep, false);
Now when I move to another scene this layer is off and does not show again. It works but I am not sure if this is the correct solution from a technical point of view.

4

Donnerstag, 31. März 2022, 18:57

If you have enabled="false" , then it's better to set set(layer[textbox].visible , false);

Jaume

Anfänger

  • »Jaume« ist der Autor dieses Themas

Beiträge: 13

Wohnort: Poland

Beruf: Photogrammetrist

  • Nachricht senden

5

Montag, 4. April 2022, 15:49

Thank you for your time to help me. Now it works fine.