SOLVED: Cannot get lookto callback to work in JavaScript

  • EDIT: Solved! The solution is here: https://krpano.com/forum/wbb/inde…&threadID=10568

    Hi,

    I'm writing a javascript plugin and I can't get the lookto donecall callback to function.

    I wrote this:

    Code
    krpano.call("lookto(" + 30 + "," + 20 + ","+60+",,,,js(endautorotation());)");


    and this:

    Code
    krpano.call("lookto(" + 30 + "," + 20 + ","+60+",,,,endautorotation)");

    but end up with the following warning message:

    Zitat

    Warning: js() - calling Javascript "endautorotation()" failed: ReferenceError: endautorotation is not defined

    The other callbacks work just fine. For instance the following code works just great:

    Code
    krpano.set("events.onloadcomplete", newScene);

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!