Shiny Language Reference

Language Reference > Handler Reference


Init

 

 

Called on plugin startup

When an SSE is loaded the Init handler is the second handler called, where any one-time preparation and setup should be done. This is the ideal place to initialize global variables, act on configuration options etc. Only the RegRead handlers are called before Init, which means any registry profile reading will have been completed before the Init handler is called.

Brass calls the Init handler and then waits for it to return before continuing. This is because Brass must wait for initialization to complete before the display panel can be created, the Render/Update handler loops initialized and the user input handlers enabled. Therefore if you perform lengthy operations in this handler your plugin will stall. Instead use the Update handler.

When using the 100% Configuration System for your plugin's panel layout, you should generally call loadlayout as the first statement in this handler.

The handler call order is as follows:

PreRegRead -> RegRead -> PostRegRead -> Init
PreRegRead -> PostRegReadFail -> Init

 

Parameters

None