Skip to main content

Plugin Method

This allows you to call a static method from a plugin.

It takes 3 arguments and returns the result.

NameDescriptionTypeExample
PluginThe name of the pluginstringVideoNodes
MethodThe name of the methodstringGetVideoInfo
ArgumentsThe method argumentsobject[][Filename]

Example Usage

function Script(FileName)
{
let vi = null;
if(('' + FileName))
{
vi = PluginMethod("VideoNodes", "GetVideoInfo", [FileName]);
}
else
{
FileName = Variables.file.FullName;
vi = Variables.vi?.VideoInfo;
}
if(!vi)
{
Logger.WLog("No video information found");
return 2;
}
}