[solved] Alternative new position for krpano console

  • In the JS console you can only use Javascript.

    Here a way to create a global krpano object, which then you could use in the console:

    Code
    embedpano({..., consolelog:true, onready:function(k){window.krpano=k.get("global");}});


    Then in the console either call krpano action code using 'call':

    Code
    krpano.call("set(plugin[pp_blur].range,50);");

    or directly interact with the krpano elements by Javascript:

    Code
    krpano.plugin.getItem("pp_blur").range = 50;
  • Hi Klaus,

    Thank you for your precise explanation. I can now use the browser console correctly. *smile*

    In the case of the krpano Console, have you considered temporarily reducing the height of the stage when the console is activated?

    The console superimposed on the stage (even with the possibility of swapping between up and down) is a bit annoying and I couldn't have it open (always while coding) as I would like.

    Best regards,

    Fdo

  • Fernando May 31, 2024 at 3:37 PM

    Changed the title of the thread from “Alternative new position for krpano console” to “[solved] Alternative new position for krpano console”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!