Help with custom KRPANO code  

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

Help with custom KRPANO code

by bitbyter » Tue Jul 26, 2016 9:24 am

Hi all - I've been attempting to learn how to add text using the krpano showtext plugin as demonstrated here:
http://krpano.com/examples/118/examples ... tyles.html
and documented here:
http://krpano.com/plugins/showtext/#top

My ultimate goal is to have the name of the current panorama displayed automatically with custom styling.

I've used the "Include of a XML file" plugin to include the showtext.xml file however I can't even seem to manage a "Hello World" message. Can anyone point me in the right direction to get a simple message displayed ?
Thanks, Scott

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

Re: Help with custom KRPANO code

by Annis » Tue Jul 26, 2016 10:13 am

You should ask this on the KrPano forum, as you'll find more users there than here.
Kolor does not provide any KrPano support.

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: Help with custom KRPANO code

by bitbyter » Tue Jul 26, 2016 3:59 pm

sorry, should have explained further that I'm trying to do so by creating a Panotour Pro plugin that I can re-use in my projects without having to edit produced code - that's why I'm posting here.

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: Help with custom KRPANO code

by 360-compunics-com-ni » Fri Jul 29, 2016 9:32 pm

So i assume you have copied the "showtext.xml"-contents to your plugins "template.tmpl"-file, right?
Then, for example, modify the "Default Textstyle" as follows (only the first line modified):

Code: Select all
   <hotspot name="h1_t" onhover="getmessage(panoname,get(scene[get(xml.scene)].titleid));showtext(get(panoname));" keep="true" >
      <point ath="-72.9589" atv="-30.4572" />
      <point ath="-70.4091" atv="-27.2998" />
      <point ath="-67.2064" atv="-31.3229" />
      <point ath="-59.0580" atv="-16.6194" />
      <point ath="-55.6416" atv="-18.9404" />
      <point ath="-64.4720" atv="-33.8924" />
      <point ath="-59.5064" atv="-37.4353" />
      <point ath="-63.7152" atv="-42.0385" />
   </hotspot>


Hovering over the "T" should now give you the pano names.
EDIT: changed the modification to actually give the panos' names, not just their ids.
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