You are not logged in.

Search results

Search results 1-20 of 28.

Thursday, January 30th 2020, 2:20pm

Author: olly

Multiple events to autorun an action?

Ah, so that is how it is done - thank you so much Tuur!

Thursday, January 30th 2020, 11:14am

Author: olly

Multiple events to autorun an action?

Is it possible to assign multiple events to an action's autorun attribute? Source code 1 2 3 <action name="myActiony" autorun="onentervr, onexitvr"> <!-- do stuff onentervr and onexitvr --> </action> Many thanks, Olly

Friday, January 24th 2020, 7:13pm

Author: olly

embedpano vars object and overriding design_bgcolor or design_bgalpha

Thank you so much Klaus - that is exactly what I needed... You are a legend!

Friday, January 24th 2020, 4:13pm

Author: olly

embedpano vars object and overriding design_bgcolor or design_bgalpha

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?

Thursday, January 23rd 2020, 6:52pm

Author: olly

embedpano vars object and overriding design_bgcolor or design_bgalpha

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...

Thursday, January 23rd 2020, 5:23pm

Author: olly

embedpano vars object and overriding design_bgcolor or design_bgalpha

Thank you San7 - that worked perfectly! Do you know why you cannot use krpano.set() for this?

Thursday, January 23rd 2020, 4:47pm

Author: olly

embedpano vars object and overriding design_bgcolor or design_bgalpha

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: Source code 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 ...

Wednesday, December 18th 2019, 4:12pm

Author: olly

Access hotspot's url when set via a style

Please ignore, I have just realised that I had not called assignstyle() on the hotspot yet....

Wednesday, December 18th 2019, 3:58pm

Author: olly

Access hotspot's url when set via a style

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: Source code 1 <style name="style1" style="nestedStyle" url="%SWFPATH%/skin/hotspot.png" /> And a a hotspot in a scene: Source code 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: Source code 1 2 3 4 5 ...

Friday, July 19th 2019, 7:12pm

Author: olly

function arguments resolve to null on mobile

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...

Thursday, January 10th 2019, 1:46pm

Author: olly

DOMException: Failed to read the 'localstorage'

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

Thursday, January 10th 2019, 11:43am

Author: olly

DOMException: Failed to read the 'localstorage'

Hi there, I am getting the following console error when viewing a tour with chrome dev tools open: Source code 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 use...

Friday, May 11th 2018, 1:59pm

Author: olly

cannot load scene using onclick

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: Source code 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_se...

Friday, May 11th 2018, 1:25pm

Author: olly

Change hotspot url using calc

Thank you - that works. Just in case it helps others, I also figured out a way using txtreplace() Source code 1 2 3 4 <action name="hotspot_setupChange_onOver"> txtreplace(newurl, url, '.png', '_over.png'); set(url, get(newurl)); </action>

Friday, May 11th 2018, 11:36am

Author: olly

Change hotspot url using calc

Hi there, I am trying to change the url of a hotspot in an onOver action, as follows: Source code 1 2 3 <action name="hotspot_setupChange_onOver"> set( url, calc( url - '.png' + '_over.png' ) ); </action> But I get: Source code 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: Source code 1 2 3 <action name="hotspot_setupChange_onOver"> set( url, calc('...

Wednesday, September 7th 2016, 12:08pm

Author: olly

How to "Count" the children layer ?

Taken from http://krpano.com/docu/actions/#arrays: Quoted 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?

Thursday, September 1st 2016, 12:28pm

Author: olly

indexoftext and tolower

I am trying to compare the linkedscene var against xml.scene using the indexoftext and tolower functions: Source code 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? Source code 1 2 3 4 5 6 7 8 9 10 <style name="skin_hotspotstyle_setupChange"...

Thursday, September 1st 2016, 10:15am

Author: olly

Detecting change in device orientation

Thanks guys, that is a great help!

Wednesday, August 31st 2016, 3:27pm

Author: olly

Detecting change in device orientation

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?

Tuesday, August 23rd 2016, 5:51pm

Author: olly

Referencing a layer name in an onover action & debugging

Figured them both out. Replacing "this" with "name" works: <action name="switchSetup_controls_onOver"> set(layer[name].background, true); </action> And adding showlog(true); to the startup action fixes my debugging issue. As you were...