Method FindItemByPath
FindItemByPath(string)
Finds an item by its path, which can be specified as either an absolute path (e.g., "MyFolder/Aura1") or a relative path (e.g., "./Aura1" to find Aura1 in the same directory as the script using this API).
Declaration
IEyeItem FindItemByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the item(folder/aura/etc), either absolute or relative. |
Returns
Type | Description |
---|---|
IEyeItem | The aura at the specified path, or null if not found. It is important to note that this method could return null if the aura is not located. |
Examples
Using an absolute path:
var item = api.FindItemBypath("MyFolder/Aura1");
Using a relative path:
var item = api.FindItemBypath("./../Folder");