Class LrPlugin
This class represents a Lightroom plug-in, and the object provides access to configuration information, such as the path and resources.
A reference to the active plug-in is stored in the global environment as _PLUGIN. There is currently no way to access other plug-ins.
Summary
plugin:hasResource( name )
Reports whether a resource exists in this plug-in.
plugin:resourceId( name )
Retrieves a reference to a resource in this plug-in.
Retrieves the unique identifier of this plug-in.
Retrieves the absolute path of the plug-in folder or package.
Functions
- plugin:hasResource( name )
-
Reports whether a resource exists in this plug-in. Typically this is a file in the plug-in folder.
First supported in version 1.3 of the Lightroom SDK.
Parameters
- 1. name
- (string) The name of the resource.
Return value
(Boolean) True if the resource exists; false if not - plugin:resourceId( name )
-
Retrieves a reference to a resource in this plug-in.
First supported in version 1.3 of the Lightroom SDK.
Parameters
- 1. name
- (string) The name of the resource.
Return value
(string) A reference to the resource, which can be passed to anLrViewpicture control, for example. (If the type changes in future, it will still be usable in this way.)See also
LrView