Plugin loading order

  • Klaus, tell me please, is there a way to load plugins before loading the xml scene?
    I have a plugin that creates a new hotspot style. In the main xml code, this plugin is connected and immediately there are hotspots that have the style created by the plugin. And the problem is that krpano gives an error: "Style not found" - apparently the hotspot from the main xml file is created before the plugin is loaded and processed, even if the "preload = true" parameter is specified.

  • Hi,

    e.g. make a callback event in your plugin and call it when your work is done (e.g. the style added) - and in the callback load the style.

    E.g.

    Code
    <plugin name="myplugin"
       ...
       ondone="loadscene(...);"
       />

    and in your plugin:

    Code
    ... do something ...
    plugin.triggerevent("ondone");

    Best regards,
    Klaus

Jetzt mitmachen!

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