Scripting API [Beta]
API Variable
workflowerScriptAPI// FUNCTION: Check whether Workflower API Variable exists
function workflowerScriptAPIExists(){
// If it exists --> Return true
if (typeof workflowerScriptAPI !== 'undefined'){
return true;
}
// Check whether the ScriptUI Panel is installed (& return false if not)
var wfMenuID = app.findMenuCommandId('Workflower ScriptUI Panel.jsxbin');
if (!wfMenuID){
return false;
}
// Open & Close ScriptUI Panel to establish API Variable
app.executeCommand(wfMenuID);
app.executeCommand(wfMenuID);
// If API Variable now exists, return true, else false
if (typeof workflowerScriptAPI !== 'undefined'){
return true;
} else {
return false;
}
}How to use API Functions
Using Functions in Non-Active Comps
Undo Groups
Error Handling
Attributes
workflowerScriptAPI.scriptVersion
Type
workflowerScriptAPI.apiVersion
Type
System Check Functions
workflowerScriptAPI.scriptExists()
Returns
workflowerScriptAPI.scriptUiPanelExists()
Returns
Layer & Group Check Functions
workflowerScriptAPI.cleanNames()
Parameters
Returns
workflowerScriptAPI.isWfComp()
Parameters
Returns
workflowerScriptAPI.isGroupHeader()
Parameters
Returns
workflowerScriptAPI.getAllGroupLayers()
Parameters
Returns
workflowerScriptAPI.isInTagID()
Parameters
Returns
workflowerScriptAPI.isInTagName()
Parameters
Returns
Major Functions
workflowerScriptAPI.execute()
Parameters
Returns
workflowerScriptAPI.kbarExecute()
Parameters
Returns
workflowerScriptAPI.refreshLayout()
Parameters
Returns
workflowerScriptAPI.refreshLayouts()
Parameters
Returns
workflowerScriptAPI.createGroup()
Parameters
Returns
Example
workflowerScriptAPI.selectGroups()
Parameters
Returns
workflowerScriptAPI.createMatte()
Parameters
Returns
Last updated