Documenting hotspot data

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
sportsnapper
Posts: 73
Joined: Tue Jun 22, 2010 10:28 pm

Documenting hotspot data

Post by sportsnapper » Wed Jan 12, 2011 10:59 pm

I'm building a few tours, and I've found that I've started adding hotspots without documenting them, so I have to open the project file and then find the hotspot and the associated data. I then realise that this is of course in the .p2vr file, in an xml format.

To make this easier, I've written an xslt stylesheet and an html page that will show the data on the screen (or stolen other peoples bits of code and glued them together would be more accurate). You can then print and create a pdf for your documentation.
Screen shot 2011-01-12 at 21.49.29.png
Screen shot 2011-01-12 at 21.49.29.png (35.08 KiB) Viewed 1597 times
The two required files are attached as a zip. You need to put the html file and the xslt file in a directory, then execute the html file. Then you can paste the name of the pano2vr project file into the text box and click the button. The hotspot parameters are then shown. For some reason it doesn't work if you hit enter - but I've already spent too long on this to fix it!

It is of course possible to extend this to show the FOV parameters etc. for the hotspots - or if you wanted the whole project file could be transformed

Hope this helps. I could have extracted the data in a tenth of the time this has taken to write - but it's quite rewarding :D

Comments/improvements are welcome - but this is essentially unsuported.

Gareth
Attachments
hotspot doc tools.zip
the 'program' html file and the transformation file
(2.5 KiB) Downloaded 188 times

User avatar
k.ary.n
Gnome
Posts: 347
Joined: Wed Aug 15, 2007 1:02 pm

Re: Documenting hotspot data

Post by k.ary.n » Thu Jan 13, 2011 1:31 pm

Thanks for posting this, Gareth!

User avatar
Laurent B
Posts: 77
Joined: Wed Aug 25, 2010 11:33 am
Location: France
Contact:

Re: Documenting hotspot data

Post by Laurent B » Wed Feb 09, 2011 12:51 am

awesome! :D
but only works with Safari
explore (not)
G-Chrome (not)
Firefox (yes I no column) :)
Laurent BIZIEN Photographies
MacBook Pro 2,6 GHz Intel Core i7 : Sierra 10.13.6 - Pano2VR 6.0 beta 3 pro.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests