Sie sind nicht angemeldet.

Kev-in-spain

Fortgeschrittener

  • »Kev-in-spain« ist der Autor dieses Themas

Beiträge: 152

Wohnort: Barcelona

Beruf: VR Photographer

  • Nachricht senden

1

Montag, 22. Januar 2018, 21:00

onstart

Hi all, I'm trying to put up a title when a new scene opens.
The action is created and is named "show_title1" so I put - <scene name="scene_02" title="02" onstart="show_title1()" but nothing happens.... what am I doing wrong here?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Dienstag, 23. Januar 2018, 12:34

Without code hard to say but you could easily create a text layer somewhere and set the html by action.. or event.
Like

<events name="tit" keep="true" onnewscene="set(layer[title].html,calc:scene[get(xml.scene)].title);" />
or so..

of course the title layer is outside the scene structure (global layer) and has keep is true.
Hope it helps

Tuur *thumbsup*

Kev-in-spain

Fortgeschrittener

  • »Kev-in-spain« ist der Autor dieses Themas

Beiträge: 152

Wohnort: Barcelona

Beruf: VR Photographer

  • Nachricht senden

3

Dienstag, 23. Januar 2018, 17:12

Y'know, quite often these issues turn out to be a failure somewhere between the chair and the keyboard.
Very true in this case... I had not put "keep="true" in the plugin... IDIOT!!

Thanks for your reply Tuur. Helpful as always! ;-)