Sie sind nicht angemeldet.

1

Sonntag, 14. März 2021, 12:46

How to pass the value of a variable at loadpano

Hi,
say I have

Quellcode

1
set(ver, get(view.vlookat));

how to pass ver at load pano

Quellcode

1
loadpano("pano.xml",view.hlookat=30&view.vlookat=%ver%));


I don't want to use KEEPVIEW, or KEEPLOOKAT as they mess with other things.

thanks!
Dorin

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Sonntag, 14. März 2021, 14:34

Try this:

Quellcode

1
loadpano('pano.xml',calc('view.hlookat=30&view.vlookat='+ver));



Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Sonntag, 14. März 2021, 19:39

Works :)

Thank you very much!

cheers,
Dorin