You are not logged in.

Search results

Search results 1-20 of 871.

Yesterday, 10:07am

Author: indexofrefraction

Merging changes of different template files into a single one

i always diff the new krpano xmls to the last ones and integrate the changes into my xmls just search for diff tools on the web examples here: https://www.git-tower.com/blog/diff-tools-windows

Saturday, November 28th 2020, 10:55am

Author: indexofrefraction

[solved] How to use get(name) in JS code

ok, but this is a special condition, for example in an onclick action. Source code 1 2 3 4 5 6 7 8 9 10 11 12 krpano.actions.filldata = function() { // take care not to overwrite any krpano actions! var krpano = document.getElementById("krpanoSWFObject"); var caller = krpano.actions.actioncaller; if(caller) { var userdescription = krpano.get("hotspot["+caller.name+"].userdescription"); alert("userdescription=" + userdescription); } else { alert("caller=null"); // the function was not called from...

Saturday, November 28th 2020, 12:39am

Author: indexofrefraction

[solved] How to use get(name) in JS code

function filldata() { var krpano = document.getElementById("krpanoSWFObject"); var name = "myhsname"; var hint = krpano.get("hotspot["+name+"].userdescription"); alert(hint); } or better: function filldata() { var krpano = document.getElementById("krpanoSWFObject"); var name = "myhsname"; var hs = krpano.hotspot.getItem(name); alert(hs.userdescription); }

Thursday, November 26th 2020, 10:57pm

Author: indexofrefraction

SLICE action

trace(calc(substr(scene_name,1,2))); inline functions (like substr) work only in expressions, see here: https://krpano.com/docu/actions/#expressions https://krpano.com/docu/actions/#expressions.inlinefunctions

Monday, November 23rd 2020, 1:57pm

Author: indexofrefraction

Chrome gyroscope

check the examples if they work on your device https://krpano.com/examples/

Monday, November 23rd 2020, 10:51am

Author: indexofrefraction

Chrome gyroscope

1.19pr8 is about 4, maybe even 5 years old and a lot of things have changed since then in the web browers. best is to always use the latest version.

Thursday, November 19th 2020, 7:00pm

Author: indexofrefraction

How to change an attribute of depthmap-elements?

this is a misunderstanding of how krpano works you can NOT access or set other scenes content like this e.g. if you are in scene 0 ... you can access attributes of other <scene> elements like : trace(scene[1].name); but you can NOT access xml elements inside other <scene> elements : trace(scene[1].image.depthmap.center); <--- NOPE processing all scenes in advance in the way you're trying is not possible it would be possible by altering the scenes content attribute, but then you have do your own ...

Thursday, November 19th 2020, 11:11am

Author: indexofrefraction

Assign hotspot to JavaScript object

kp.call("addhotspot(" + id + ")"); var hs = kp.get("hotspot(" + id + ")"); or better: var hs = kp.hotspot.getItem(id); hs.html = "the documentation is great ;)"; https://krpano.com/docu/plugininterface/#array but ok, to be fair, the fastest way is not really documented : var hs = kp.actions.addhotspot(id); hs.html = "the documentation is still great ;)"; ;)

Wednesday, November 18th 2020, 11:30pm

Author: indexofrefraction

Using AND for Multiple Conditions

NOOO .. this old example code is totally outdated! AND / OR etc are totally fine, so you should use : Source code 1 2 3 4 5 if(hotspot[Stationensponsor] == null AND layer[logo1].visible == false, removelayer(skip_intro); , set(layer[skip_intro].alpha, 0.5); ); or shorter Source code 1 2 3 4 5 if(hotspot[Stationensponsor] AND layer[logo1].visible, set(layer[skip_intro].alpha, 0.5); , removelayer(skip_intro); );

Wednesday, November 18th 2020, 7:55pm

Author: indexofrefraction

Using AND for Multiple Conditions

you probably read a years old post. this syntax is perfectly fine: IF( A == B AND C == D , then do_true_action , else do_false_action ); documentation --> https://krpano.com/docu/actions/#if https://krpano.com/docu/actions/#expressions and btw, you probably meant : if(layer[logo1].visible == false, removelayer(skip_intro);

Wednesday, November 11th 2020, 1:18pm

Author: indexofrefraction

args not working for loadscene

inside startVideo() you create a new action layer[video].onvideoplay which is called later, when the video starts to play onvideoplay() is not called with your arguments var1 and var2 from startVideo() so var2 is undefined / null at that point so in startVideo you create onvideoplay with the contents of var2 not with "var2" you can add trace(layer[video].onvideoplay); atfter creating it to check how it works

Tuesday, November 10th 2020, 9:16pm

Author: indexofrefraction

args not working for loadscene

your var2 is not defined when your onvideoplay is called you need to write its content into the onvideoplay call : calc(layer[video].onvideoplay, 'eventstarter();loadscene(' + var2 + ', null, MERGE|KEEPPLUGINS)');

Monday, November 2nd 2020, 6:51pm

Author: indexofrefraction

xml.content

@klaus: i guess it will contain the merged xml after processing all includes? (probably including the scene definitions) best, index

Monday, November 2nd 2020, 1:56pm

Author: indexofrefraction

zFilter 2 - WebGL Postprocessing Plugin

Quoted from "juyatu" Can I set the center locations of 'ripple' and 'Swirl'? hi juyatu, no sorry, atm there is no support for changing the center for swirl / ripple. best. index

Tuesday, October 27th 2020, 7:17pm

Author: indexofrefraction

load other scene from html iframe.

check the console output of your browser you need to debug why it fails. live examples help to help

Monday, October 26th 2020, 8:44pm

Author: indexofrefraction

load other scene from html iframe.

ah i think this was a mix up... the last version was controlling a pano inside an iframe from the main content you want to change the panorama main content from inside an iframe ? https://stackoverflow.com/questions/8066…-iframe#8066689 then it would be onclick="window.parent.document.getElementById('krpanoSWFObject') ...... " and you can forget the iframe.id = "myframe";

Monday, October 26th 2020, 7:09pm

Author: indexofrefraction

load other scene from html iframe.

in add_iframe add: Source code 1 iframe.id = "myframe"; then you can use this onclick action Source code 1 onclick="document.getElementById('myframe').contentWindow.document.getElementById('krpanoSWFObject').call('loadscene(scene_Rathaus_Innenhof, null, MERGE|KEEPVIEW, BLEND(3));');"

Monday, October 26th 2020, 3:39pm

Author: indexofrefraction

load other scene from html iframe.

https://stackoverflow.com/questions/3999…ocument#3999154

Saturday, October 24th 2020, 6:33pm

Author: indexofrefraction

xml.content

Quoted from "jeromebg" I was hopping reading the docs ;) normally works i just tried preinit... there xml.content is empty onxmlcomplete and onloadcomplete ... there xml.content already has the scene content maybe klaus will shed a light on this :) would be interesting to check if xml.complete holds the main xml if there is no scene in the xml.

Saturday, October 24th 2020, 4:07pm

Author: indexofrefraction

xml.content

despite it looks possible in the docs https://krpano.com/docu/actions/#xml.content xml.content never has a value before it gets the scene content atm, i dont think it is possible to get the non-scene xml content.