![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
I'd like an easy way for my javascript code to grab the name of the current pano. I'm most likely not asking for javascript code inside my tour, but to make it easy for anyone designing the tour here to add something inside my PanoTour Pro project. Is there a field I can fill out (when I click on a pano inside PanoTour Pro) as the current name of the pano?
The rest of the work I can figure out I think. Some javascript will grab this name, and then use it to do a search in an xml file, and return the info.
I don't want to add these pano labels in the xml files that PanoTour Pro outputs, because then every time I build my project I will need to add them again.
Any ideas, or alternatives? Many thanks.
Last edited by exactspace (2012-08-07 17:50:23)
Offline
exactspace wrote:
I'd like an easy way for my javascript code to grab the name of the current pano. I'm most likely not asking for javascript code inside my tour, but to make it easy for anyone designing the tour here to add something inside my PanoTour Pro project. Is there a field I can fill out (when I click on a pano inside PanoTour Pro) as the current name of the pano?
The rest of the work I can figure out I think. Some javascript will grab this name, and then use it to do a search in an xml file, and return the info.
I don't want to add these pano labels in the xml files that PanoTour Pro outputs, because then every time I build my project I will need to add them again.
Any ideas, or alternatives? Many thanks.
Could you tell what you mean precisely? There are some solutions. Do you restrict it to Javascript?
best, Klaus
Online
Yes sorry I was a bit messy explaining. So I just want to make things as easy as possible with development. I am restricted to Javascript.
If there was a way to click a panorama on PanoTour Pro and set a field's variable to whatever I want, preferably the name of the panorama, I could have my code grab that to do a search in an xml file as a description of the room I'm in.
Now that I think about it though, I could probably have my code somehow grab the name of the source image filename used for the pano. I know this is stored somewhere because I can add alert(%p) on a hotspot javascript property, and it will display an alert box of the image name without the extension when I touch the hotspot.
Offline
I think I would want to go with the source pano image used as the pano name because that's more automatic and cleaner.
Offline
So it looks like I DO need javascript of the variable name of the current pano in my tour. Let me know if this is more on the krpano end.
Offline
Basically if I just display this in javascript using alert(); I'm successful:
Any ideas on how to retrieve that?
Offline
As I recall the next version of PTP/PTP (V2.x) will offer the facility to set scene titles from within the GUI.
But not sure that's what you are loking for anyway?
Offline
The "%p", "%f" and "%s" parameters you can set in your JS call in the hotspot properties do not use a "stored" data of the tour.
They are replaced by PTP when the tour is build.
So no, the current version does not create any meta-data for each panorama.
But as Andrew said in the previous post, the next major version of PTP will create some text data, you will be able to use in your own "plugin/krpano code/JS code/etc..." .
Each panorama and each group of panorama will contain at least a title and a description field.
Gérald
Offline
Thanks, that's good to know it will be in the next major version! I guess I'll just keep trying to figure out a way to hack it in.
Although I'm still curious what klausesser has to say.
Last edited by exactspace (2012-08-08 17:58:29)
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
