pano object introspection?  

This sub-forum is for discussing and reporting bugs on any content that is not available by default in Panotour, so this concerns custom HTML templates, extra plugins (both Kolor-provided and third-party), etc...

Ce sous-forum a été créé pour discuter et/ou rapporter des bugs sur tout contenu qui n'est pas disponible par défaut dans Panotour, donc cela concerne les templates HTML customisés, plugins supplémentaires, etc...
no avatar
bitbyter
Member
 
Topic author
Posts: 40
Likes: 1 post
Liked in: 3 posts
Joined: Wed Nov 18, 2015 11:55 am
Info

pano object introspection?

by bitbyter » Fri Feb 17, 2017 3:11 am

Hi - I've been trying to tweak an HTML template for a specialized purpose and have attempted to discover which properties/variables are associated with the "pano" object. Specifically, I'm trying to determine if a scene is planar or not ...however I can't figure out how to test this property within the HTML template.

Other template authors have used {{pano.tourId}}, {{pano.description.name}}, {{pano.description.description}}, and {{pano.thumbnailPath}} within HTML templates and I am at a loss to find any definition of the pano object within docs or forums. Have tried to use Django debug to describe the object but it doesn't reveal anything.

Can anyone tell me how to get a description of the pano object and its public variables as it appears to HTML template?
Thx, Scott

User avatar
360-compunics-com-ni
Member
 
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: pano object introspection?

by 360-compunics-com-ni » Fri Feb 17, 2017 4:19 am

Hi Scott,

i would like to have that documentation as well.. regarding the "planar-check" i found something by greping through the original plugins templates:
{% if pano.isPlanar %}OK{% else %}NO{% endif %}

Bye,
Michael
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
bitbyter
Member
 
Topic author
Posts: 40
Likes: 1 post
Liked in: 3 posts
Joined: Wed Nov 18, 2015 11:55 am
Info

Re: pano object introspection?

by bitbyter » Fri Feb 17, 2017 6:48 am

WOW! Have tried this and it's already solved my immediate problem - Thank You Michael!
I am curious where you found it though - I also tried greping for "planar" and could not find any templates that had this phrase. By "original" are you referring to legacy plugins that are no longer distributed?

Thanks again!

User avatar
360-compunics-com-ni
Member
 
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: pano object introspection?

by 360-compunics-com-ni » Fri Feb 17, 2017 3:22 pm

On Linux i found it in "/usr/share/PanotourPro/Resources/plugins/floorPlan/kolorFloorPlan.tmpl", and it is used in the "kolorMap.tmpl"-file as well. Both are very interesting to study, but i don't know their locations on other platforms.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

User avatar
Annis
Kolor Team
 
Posts: 6063
Likes: 801 posts
Liked in: 444 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: pano object introspection?

by Annis » Fri Feb 17, 2017 3:33 pm

360-compunics-com-ni wrote:but i don't know their locations on other platforms.

No matter the OS you can find those folders this way:
Open Panotour > Edit > Open Templates System folder > Plugins and select the plugin you want to study. :)

benji33 likes this post.

no avatar
bitbyter
Member
 
Topic author
Posts: 40
Likes: 1 post
Liked in: 3 posts
Joined: Wed Nov 18, 2015 11:55 am
Info

Re: pano object introspection?

by bitbyter » Fri Feb 17, 2017 4:03 pm

Thanks to you both!

User avatar
360-compunics-com-ni
Member
 
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: pano object introspection?

by 360-compunics-com-ni » Sun Aug 05, 2018 9:37 am

Not sure what your use case is, but maybe you can get some hints out of this great example using two synchronized tours to get the "before/after"- or "day/night"-effect: http://www.kolor.com/forum/viewtopic.php?f=26&t=34651
The "chair"-symbol in the upper left corner of the demotour switches between the two tours.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829


Who is online

Users browsing this forum: No registered users and 1 guest