You are not logged in.

  • "lastromantik" started this thread

Posts: 141

Location: Russia, Komi republic, Uhta

Occupation: developer

  • Send private message

1

Tuesday, May 10th 2022, 2:27pm

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.

Hello from uhta3d )))
I'm in telegram: Lastromantik

2

Saturday, May 14th 2022, 11:04am

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.

Source code

1
2
3
4
<plugin name="myplugin"
   ...
   ondone="loadscene(...);"
   />


and in your plugin:

Source code

1
2
... do something ...
plugin.triggerevent("ondone");


Best regards,
Klaus

  • "lastromantik" started this thread

Posts: 141

Location: Russia, Komi republic, Uhta

Occupation: developer

  • Send private message

3

Saturday, May 14th 2022, 11:07am

Ok, sanks)

Hello from uhta3d )))
I'm in telegram: Lastromantik