• Load a JavaScript module. Used for importing another JavaScript file found in the Resources panel to be used in the current script. Similar to require found in CommonJS specification. You can access Lens Studio specific modules (like RemoteServiceModule) using the LensStudio prefix, such as: require("LensStudio:RemoteServiceModule).

    You can use the modules name or path, meaning you can have two version of the same module in your project if needed. Both by name or by path will be relative to the script which is calling require, but by name will check the same folder as the script, then the parent folder, and so on. In addition, any require can be relative to your library folder. Take a look at the Scripting guide to learn more.

    Parameters

    Returns any