HI, it depends on how you set up your build script.
Referring to standard vtour make script those params must be added in vtour_skin.config
Hope this help you
Posts by sbraaa
-
-
-
Hi Jerome,
I know but my trick was to bypass that action to have the full control.
Maybe exist a better solution than the one I found but I really can't imagine which is..I need to activate panoshot only when specific url parameter is present.
I simply declare an event to parse url parameter and then, if param exist, I use his value as name of action to call (in my sample "show" action which is the same of mysnapshot).
I cannot do that using mysnapshot because the script call it automaticly (which is not my desired behaviour).
How can I do that alternatively?P.s. Testing this feature on real server (php-fpm 7.2, apache 2.4.49) your savescreenshot.php raise a lot of warnings if you disable watermark. Those warnings lock the vtour.
I made this changes: -
Hi,
thank for the reply.
I was able to achieve the desired result but still have a little problem.I add these lines:
Code<!-- <action name="mysnapshot"> if(%1 == true,set(layer[show_snapshot_UI].visible,false),set(layer[show_snapshot_UI].visible,true)) </action> --> <events name="enable_snapshot_ui_check_parameters" keep="true" onnewpano="snapshot_ui_parameters_handler();"/> <action name="snapshot_ui_parameters_handler"> ifnot(enable_snapshot_ui===null,action(get(enable_snapshot_ui));); </action> <action name="show"> if(%1 == true,set(layer[show_snapshot_UI].visible,false),set(layer[show_snapshot_UI].visible,true)) </action>
Now the "get snapshot" icon appears only if I add to my url this param : enable_snapshot_ui=show.
Unlike standard behaviour the icon isn't hide when I click to enable snapshot_ui so you'll see both icons : the one used to enable snapshot_ui
and the one used to grab the screen area.
How can I prevent this? -
Hi Jerome,
your plugin is simply amazing, very well done.
In my project I want to add the plugin feature only for some cases so I need to find a way to enable/disable the plugin.
I was thinking about use url parameter but I don't know how to "hide" the plug-in ... maybe hiding the panoshot layer could be the right solution but
I don't know how to do that, can you help me please?
Thank you -
-
Recently we upgrade from version 1.18.3 to 1.20.6 and rec-creating some virtual tours we noticed some problems with hotspot positioning.
ath and atv values are exactly the same but hotspot seems rotated of some degrees (180 degrees tipically).
I tried to compare main xml configuration files generated with each version and I saw that new version adds prealign option to images while older version does not.
Removing prealign option manually doesn't solve my problem.
How can we solve the problems?It seems that new version need some tweaking but we don't know which files must be modified.
We use standards files schema for generate vt (like the one availiable in the samples) adding very basic options (watermarks and some speed regulation)Thank you in advance
-
I do it too (more than 5 min.. 1 day if I remenber correctly)
I hope this limit the problem -
Unfortunately not, they were very active because covid situation....
situation is:
- If you are a new user no problem : the new vts are ok
- if you are old user and has old vt created with 1.18.3 they still work but they will not when cache expires.. if you have both older vt and newer one.. that's a disaster! -
Unfortunately I can't do that for virtual tours previously created
They could be recreated but still mantain the old url.I tried changing all the filename of all created vt but it seems there's something else saved in browser cache (chrome, safari, firefox...) which could be cleared only deleting browser's entire cache.
-
Believe me, this kind of things are not simple on any Apple device, anyway this is not what I need..
I cannot ask all the users to clean their cache to see hotspots on the right place.
I've tried changing the name of the main js and xml files but still no success.
On Chrome (win or linux) still CTRL+F5 does nothing, you must clean browser cache.
I spent a lot of time trying to understand which are the cached assets that cause this behaviour but I havn't found them!
Hope someone else give some advice. -
Hi,
recently I upgrade from version 1.18.3 to 1.20.6.
In my virtual tour 360 I usually place some hotspots and, after upgrading, I noticed that they will be displayed at 180 degrees from expected position.
The only way to make them display in the right position using new version is to completely clean browser cache (at least once!) and then it runs as expected.
This behaviour could create problems with my site users so I need to find a solution to invalidate completely cache without any user's action.In my html main file I place that metas to prevent cache:
Code<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
I also add some fake parameters to assets url to invalidate the cache (e.g.
)
but nothing change!Anyone faced this problem and could give me some useful advice?
Thank you in advance -
Finally I've found the solution!
The license code must be register with the user that runs the script!
If, for example, you register the license as root and then you log in with another user krpanotools doesn't recognize the license code!
Hope this could be usefull for someone else! -
I've made some check, I hope this help to solve my problem.
The command will be launch by php script :Code$cmd = "./krpanotools makepano -config=template/myconfig.config "; $cmd .= " ".$img_full_path; $results = shell_exec($cmd);
Doing this Demo watermark still appears.
Trying the same directly on the shell it runs well producing a virtual tour without demo watermark as expected.
This is making me mad! -
Searching the forum it seems that older versions use a separate license file but I guess newer one does not!
It's very strange behaviour : krpanotools register show tell me that I'm using a register version but Demo still appear...
Hope someone could help me -
I bought krpano standard license for two linux servers.
For the first linux server I've register using GUI and using the droplet the virtual tour are without "demo version".
For the second server I've register from command line (krpanotools register CODE) but the virtual tours generated by command line still has "demo version"
I don't undertstand which is my fault?
Anyone could help me please? -
That's a snippet of my code:
Code$cmd = "krpanotools makepano -config=myconf.config ".$array_of_images; $results = shell_exec($cmd);
$array_of_images is my images list, which is composed by different kind of images, In myconf.config panotype is set to autodetect.
If the type of a single image cannot be understand the script ask to choose the type: this could be managed using a solution described here .Problem with krpanotools comand line
This runs well for a single image but I don't think could be used for a set of images.
I guess the a solution could be:
- detect single image type
- make virtual tour for single image
- merge all the virtual toursTo be honest I don't know how to accomplish this task.
Anyone could suggest me how to do this or a better solution?
TYA -
Hi,
As I said in the subject I'm trying to automate the process of creation of a virtual tour using different type of images (flat, sphere, cylinder, etc. etc.).
Using the droplet the script ask to user which kind of image to choose if it cannot be understand.
In my script I need to force the type of each single image, is it possible? -
Hi,
I'm making a webapp (hosted in linux) which let the user to upload a set of images then use them to make a virtual tour (calling batch script from php) and show the result video tour.
Here's my problem: how can I detect the right type of the images the user upload?
I mean, the single image could be not a panorama or be cylindrical type or spherical type.
Using virtual tour droplet, the program itself detect if image you select are the right kind or ask you to specify which kind to choose if it is not possible to understand.
Exists a tool on linux (or a pattern that I could develop in php) to detect image type to discard image I don't need and make the xml for virtual tour specifying the type I want for the single image?
Anyone faced this problem?
Thank you in advance!