is it possible to pass parameters to testing server (win or mac)? for example startscene=5
pass parameters to testing server
-
-
-
нет, я про запуск исполняемого файла с параметрами)
-
Нужно запустить testing server.exe и в строке браузера прописать нужные параметры (мой пример выше). Сразу запустить с параметрами - не уверен, что есть такая возможность.
-
нужно именно при запуске exe, чтобы из другого ПО вызывать сразу нужные панорамы
-
english?
-
Hi) Sure,
I answered that it's possible to launch Krpano testing server and in browser address bar add parameters to the link.
-
i was just wondering what those hyroglyphs meant
-
Huh)))) Leo Tolstoy make a good deal writing with these hyroglyphs)))
The question was how to launch 'tour_testingserver' with parameters right from the start. I said I dunno how to do it without first launching the .exe and then adding parameters in the browser address panel.
I'm not a proger though, maybe some ideas from anybody else?
-
Hi dreamcutter,
I do use the initvars. settings for passing the variables. Look on my example with a "default" link
https://pavel.ursiny.sk/pano/at/MillstatterSee_2016/
and the special case when requesting the English language and ultra light design skin:
https://pavel.ursiny.sk/pano/at/Millst…ign_ultra_lightThe use case of using it is in my internationalization "i18n" enhancements for multi language support of krpano:
https://krpano.com/forum/wbb/inde…5255&highlight=
I need to upload the upgraded version of the code running on krpano ver. 1.19.pr16, but you can read about the 'pholosophy' and code after downloading my latest upload.Have a great day!
Pavel -
thanks, but i need pass parameters to testing server with command line when it starts
for example: C:/Projects/Tour/testing_server.exe startscene=5
and after this command i expect that browser will launch my tour from the pano №6 -
Klaus:
maybe it would be an idea
if the testserver executable had some (documented) arguments...- the path to the folder / file to open
like -p some/subfolder/panotour
or -p some/subfolder/panotour/tour.html- the url arguments to pass to the tour
maybe in url format like -a "?startscene=5&test=4"
or in a list -a "startscene=5,test=4"or is that possible already somehow?
-
won't it be just easier to create a custom exe/dmg and there you can have control of every varibale ??
-
won't it be just easier to create a custom exe/dmg and there you can have control of every varibale ??
i dont think that is easier (for most people)
for me it would be cool if the testserver would accept some commandline arguments. -
Hi *,
This is not passing command line, but maybe it helps: to start any scene use the deep linking option introduced by Klaus here:
https://krpano.com/forum/wbb/inde…ews119vtourskin
The syntax and params to pass are in the vtourskin.xml:Code
Alles anzeigen<action name="skin_deeplinking_update_url_process" scope="local"> copy(adr, browser.location); indexoftxt(qi, get(adr), '?'); if(qi GT 0, subtxt(adr, adr, 0, get(qi))); copy(si, scene[get(xml.scene)].index); copy(h, view.hlookat); copy(v, view.vlookat); copy(f, view.fov); copy(d, view.distortion); copy(a, view.architectural); clamp(d, 0.0, 1.0); clamp(a, 0.0, 1.0); set(pp, calc(f LT 10 ? 6 : 2)); roundval(h, get(pp)); roundval(v, get(pp)); roundval(f, get(pp)); roundval(d, 2); roundval(a, 1); set(adr, calc(adr + '?startscene=' + si + '&startactions=lookat('+h+','+v+','+f+','+d+','+a+');')); js( history.replaceState(null, document.title, get(adr)); ); </action>
Pavel -
That doesn't do here, because there's a need to start testing server directly with parameters (without starting the browser first). And in this example, the browser.location is used at the beginning - that means the link in the browser is already open.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!