Suchergebnisse
Suchergebnisse 1-20 von insgesamt 29.
Hi there, What determines whether krpano adds a leading zero to the paths when dropping panos onto the "MAKE PANO (MULTIRES) droplet.bat"? After some crude tests, I have found the following differences in the output directory structure: Panos 14480 x 7240 and above panos/01.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg Panos 14478 x 7239 and below panos/01.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg Note the leading zeros are gone in the second example. Is this by design or a bug? Cheers, Olly
Ah, so that is how it is done - thank you so much Tuur!
Is it possible to assign multiple events to an action's autorun attribute? Quellcode 1 2 3 <action name="myActiony" autorun="onentervr, onexitvr"> <!-- do stuff onentervr and onexitvr --> </action> Many thanks, Olly
Thank you so much Klaus - that is exactly what I needed... You are a legend!
Thanks for the pointer to get the "real" krpano object... However, krpano.layer.getItem("skin_floorplan_container") returns undefined. Does the getItem() selector string require any context?
Thanks for trying to help indexofrefraction. Your first idea does not work here and the second throws an error: Uncaught TypeError: Cannot read property 'getItem' of undefined Is the layer property of krpano object documented anywhere? Is this a bug or user error? FWIW I am using v1.20.2...
Thank you San7 - that worked perfectly! Do you know why you cannot use krpano.set() for this?
Hi there, I am trying to override skin or layer settings using javascript, but I am not having much luck. Can anyone help me with the order of execution when using embedpano and an onready callback function: Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 embedpano({ swf: "../assets/tour.swf" ,xml: "tour.xml" ,target: "pano" ,html5: "auto" ,mobilescale: 1.0 ,bgcolor: "#00ff00" ,vars: { ui_color: "0xFFFFFF" ui_alpha: "0.5" } ,onready : krpano_onready_callback }); function kr...
Please ignore, I have just realised that I had not called assignstyle() on the hotspot yet....
Hi there, I cannot seem to access a hotspot's url, in an action with the following setup. I hope someone can get me back on track! I have a style definition: Quellcode 1 <style name="style1" style="nestedStyle" url="%SWFPATH%/skin/hotspot.png" /> And a a hotspot in a scene: Quellcode 1 2 3 4 5 6 7 8 9 <scene name="scene_1" onstart="setHotspotStyles();" > //... <hotspot name="spot1" ath="90" /> //... </scene> And the following action, called onstart for the above scene: Quellcode 1 2 3 4 5 6 7 8 ...
Hi all, I have a problem that I hope someone can help me with. If you visit this tour on chrome desktop browser: 1476_testing and open the console, when you click the "BLANK CANVAS" hotspot you will see "skin_changeFitout_click() argument 1 = catA" reported in the console. If you then apply a Galaxy s5 profile in developer tools you will see "skin_changeFitout_click() argument 1 = null" and the scene fails to load as the scene name is malformed with null. It should still report "skin_changeFitou...
Hi Klaus, Thank you for replying. I forgot to mention the error only shows when using the dev tools to emulate a mobile device. Is it anything to worry about in that context? Thanks, Olly
Hi there, I am getting the following console error when viewing a tour with chrome dev tools open: Quellcode 1 2 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. https://d8d913s460fub.cloudfront.net/krpanocloud/webvr_localstorage.html?v=4:1:167 You can see our tours here I am currently using 1.19-pr16, have been creating tours for a couple of years and do not recall seeing this error before. FWIW, some older tours may have used ...
Can anyone help explain why I cannot get my linkedscene to load on a hotspot? I have the following actions defined for onover and onclick of my hotspot: Quellcode 1 2 3 4 5 6 7 8 9 10 <action name="hotspot_setupChange_onOver"> trace(get(linkedscene)); txtreplace(newurl, url, '.png', '_over.png'); set(url, get(newurl)); </action> <action name="skin_hotspotstyle_click"> trace(get(linkedscene)); if(linkedscene, set(enabled,false); loadscene( get(linkedscene), null, txtadd(MERGE|,%1) , get(skin_sett...
Thank you - that works. Just in case it helps others, I also figured out a way using txtreplace() Quellcode 1 2 3 4 <action name="hotspot_setupChange_onOver"> txtreplace(newurl, url, '.png', '_over.png'); set(url, get(newurl)); </action>
Hi there, I am trying to change the url of a hotspot in an onOver action, as follows: Quellcode 1 2 3 <action name="hotspot_setupChange_onOver"> set( url, calc( url - '.png' + '_over.png' ) ); </action> But I get: Quellcode 1 GET http://192.168.1.5:53087/NaN_over.png 404 (Not Found) Can anyone point me in the right direction and explain why my code does not work? On a previous project I was successfully using this: Quellcode 1 2 3 <action name="hotspot_setupChange_onOver"> set( url, calc('%SWFPA...
Taken from http://krpano.com/docu/actions/#arrays: Zitat Every xml element with a name attribute is an element / item of an Array In this case surely layer[a], in the OP's example, should be an array? I would love to access layer[a].count and also a child object, using layer[a][0], but it doesn't seem to work. Please could someone clarify the situation and give me a pointer if it is just a problem with my syntax?
I am trying to compare the linkedscene var against xml.scene using the indexoftext and tolower functions: Quellcode 1 indexoftxt(index, xml.scene, tolower(linkedscene) ); I am using tolower because xml.scene appears to always be lowercase. However, the first trace outputs the linkedscene attribute as expected, whereas the second just outputs the text between the parentheses. Can someone help me with the syntax please? Quellcode 1 2 3 4 5 6 7 8 9 10 <style name="skin_hotspotstyle_setupChange" url...
Thanks guys, that is a great help!
Is there a simple way of changing an attribute's value, based on device orientation? Something like this maybe: <layer name="help" type="container" height="33%" height.mobile.landscape="50%" height.mobile.portrait="33%" Or am I trying to do something fundamentally wrong here?