![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Hi
I find the default direction that the mouse drags the pano to be quite un-intuitive. I've visited other panos where the mouse drag works in the opposite direction.
I can't see any way to change it in Panotour. Have I missed something?
Looking through the krpano documentation, the relevant code appears to be:
<control mousetype="drag2D" />
If this is right, where in the themes xml should I put this code?
Many thanks
Mike
Offline
Hi Mike,
did try it - and I could not add it to any of the ..../themes/xxx.xml (xxx for e.g. 2D.xml) files.
no error occured after reloading PTP and after assinging the added theme and export. could not find the code block in final pano tour files.
so I did manually adding the code to the xxx.xml file (xxx for chosen project name) I added the sourcecode between final
</action>
-> here
</krpano>
...
</action>
<control usercontrol="all"
mousetype="drag3d"
zoomtocursor="false"
zoomoutcursor="true"
mouseaccelerate="1.0"
mousespeed="10.0"
mousefriction="0.8"
mousefovchange="1.0"
keybaccelerate="0.5"
keybspeed="10.0"
keybfriction="0.9"
keybfovchange="0.75"
keybinvert="false"
fovspeed="3.0"
fovfriction="0.9"
movetocursor="none"
cursorsize="10.0"
headswing="0.0"
keycodesleft="37"
keycodesright="39"
keycodesup="38"
keycodesdown="40"
keycodesin="16,65,107"
keycodesout="17,89,90,109"
touchfriction="0.87"
trackpadzoom="true"
/>
</krpano>this method did work, but whenever PTP project gets updated and reexported the made manual changes are lost...
Georg
Last edited by gkaefer (2011-03-09 01:30:42)
Offline
gkaefer wrote:
Hi Mike,
did try it - and I could not add it to any of the ..../themes/xxx.xml (xxx for e.g. 2D.xml) files.
no error occured after reloading PTP and after assinging the added theme and export. could not find the code block in final pano tour files.
so I did manually adding the code to the xxx.xml file (xxx for chosen project name) I added the sourcecode between final
</action>
-> here
</krpano>
this method did work, but whenever PTP project gets updated and reexported the made manual changes are lost...
Georg
Hi Georg
I ended up trying something similar, with the same result. I've been using the e-card plugin too and this is similar, do most of the work in PTP then have to do some final coding in the XML.
I will persevere and keep you updated. Maybe using a droplet would allow commonly used code changes to be easily added into the xml files.
Thanks for your reply.
Mike
Offline
MikeMcFarlane wrote:
Hi
I find the default direction that the mouse drags the pano to be quite un-intuitive. I've visited other panos where the mouse drag works in the opposite direction.
I can't see any way to change it in Panotour. Have I missed something?
Looking through the krpano documentation, the relevant code appears to be:
<control mousetype="drag2D" />
If this is right, where in the themes xml should I put this code?
Many thanks
Mike
Hey Mike, Georg!
AFIK you can change the cursor and it´s behavior using the full navigation bar. But i might be wrong - i never an an interest to change it.
Go to the PRPano site and look for "Interface Examples" and the "Option" box you can have on the screen while building a pano and blend it away after having finished it.
see here:
Last edited by klausesser (2011-03-09 11:51:14)
Online
klausesser wrote:
Hey Mike, Georg!
AFIK you can change the cursor and it´s behavior using the full navigation bar. But i might be wrong - i never an an interest to change it.
Go to the PRPano site and look for "Interface Examples" and the "Option" box you can have on the screen while building a pano and blend it away after having finished it.
see here:
Hi Klaus
Thank you, will have a look at that. I'm just starting to have a play with the krpano plugins. The editor plugin also looks very good for changing xml on the fly.
Kind regards
Mike
Offline
gkaefer wrote:
Hi Mike,
did try it - and I could not add it to any of the ..../themes/xxx.xml (xxx for e.g. 2D.xml) files.
no error occured after reloading PTP and after assinging the added theme and export. could not find the code block in final pano tour files.
so I did manually adding the code to the xxx.xml file (xxx for chosen project name) I added the sourcecode between final
</action>
-> here
</krpano>
this method did work, but whenever PTP project gets updated and reexported the made manual changes are lost...
Georg
Hi Georg
Having a look at the krpano documentation, esp
http://www.krpano.com/docu/xml/#include-notes
It looks like you could use an include file, so write an xml file that contains all your custom tweaks then all you need to do is add the include node to the PTP xml and all your custom stuff will be pulled in.
e.g
<include url="my_code.xml" />
It's still a manual edit, but maybe easier than cutting and pasting a lot of xml. It might even be possible to add the include node into the PTP theme xml.
Mike
Offline
Hi
Using an include file works well.
Into the start of the PTP xml I add:
<krpano version="1.0.8.12">
<!-- include standard code -->
<include url="standard.xml"/>
rest of the code ...........Then in the tour directory I create a folder called 'standard' where I can copy any standard elements like cursors.
In the tour directory I can copy in my standard include file, called 'standard.xml' which looks like:
<!-- Mike's standard include file 09-03-11 -->
<!-- logkey="true" sets the error console to be available -->
<krpano version="1.0.8.12" logkey="true">
<control
mousetype="moveto"
mouseaccelerate="0.9"
mousespeed="2"
mousefriction="0.5"
/>
<cursors url="standard/qtvr-cursors_gray.png"
type="8way"
move="0|0|16|16"
drag="16|0|16|16"
arrow_u="32|0|16|16"
arrow_d="48|0|16|16"
arrow_l="64|0|16|16"
arrow_r="80|0|16|16"
arrow_lu="96|0|16|16"
arrow_ru="112|0|16|16"
arrow_rd="128|0|16|16"
arrow_ld="144|0|16|16"
/>
</krpano>I'll add in other elements as I find out about them.
Easy:-)
Kind regards
Mike
Offline
MikeMcFarlane wrote:
Hi
Using an include file works well.
Into the start of the PTP xml I add:Code:
<krpano version="1.0.8.12"> <!-- include standard code --> <include url="standard.xml"/> rest of the code ...........Then in the tour directory I create a folder called 'standard' where I can copy any standard elements like cursors.
...............
Easy:-)
Kind regards
Mike
Neat...do the elements you add like this remain in effect for the entire tour?
This could open up a away to cope with specification of custom XML from within the PTP GUI and for custom XML to be retained on/after repeated exports of the tour.
Offline
Hi Andrew
Yes, it appears to continue to work in multiple panos in a tour. I guess because the standard.xml code is parsed into the top level tour xml then it is carried across to all panos.
With this, and customised themes, it seems pretty possible to make a lot of polishing automated.
Maybe it is a feature that could be added to PTP - the option to include a standard.xml file?
Glad you like, nice to put something back for all the help I have received:-)
Kind regards
Mike
PS I edited the code slightly in my code above, seemingly xml comments need <!-- and --> on all lines, I think. The above code should be ok now for whatever the reason.
Last edited by MikeMcFarlane (2011-03-09 16:46:10)
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 |
