reference:scripting_reference:scripting_events:oninitincludefile

The OnInitIncludeFile event is called once for each include file script to initialize it. Implementing this event is optional, but recommended as it allows you to provide a name, description and other information such as minimum version requirements.

Method Name: OnInitIncludeFile

Argument Type:

IncludeFileInitData 

Return Type:

none

Description:

When Opus starts up, or when an include file script is added or edited, its OnInitIncludeFile method is called. This gives the include file a chance to tell Opus something about itself, by setting the various properties of the IncludeFileInitData object.