Class TrackerViz
Main class of the script
Defined in: TrackerViz.jsx
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
This class represents the main class of the script; it is used to create the user interface which allows to execute the script functions
|
| Method Attributes | Method Name and Description |
|---|---|
|
autoRenameLayers(comp)
Renames layers having the same name
|
|
|
autoRenameTrackPoints(comp)
Renames track points having the same name
|
|
|
buildUI(thisObj)
Creates and displays the script interface
|
|
|
Determines whether the active item is a composition
|
|
|
createLayerFromItem(comp, itemIndex)
Creates a new comp layer from a project item
|
|
|
createNewSolid(comp)
Creates a new solid with predefined settings
|
|
|
createOptionsDlg(pal)
Creates and displays Options dialog
|
|
|
createTargetDlg(pal)
Creates and displays Target dialog
|
|
|
Creates and displays Tools palette
|
|
|
Determines Layers - Average Position expression
|
|
|
getLayersCornerPinExpression(layers)
Determines Layers - Corner Pin expression
|
|
|
getLayersPositionExpression(layers)
Determines Layers - Position expression
|
|
|
getLayersRotationExpression(layers)
Determines Layers - Rotation expression
|
|
|
getLayersScaleExpression(layers)
Determines Layers - Scale expression
|
|
|
Determines Layers - To Shape point control expression
|
|
|
getLayersTrackCombineExpression(childLayer)
Determines Layers - Track Combine expression
|
|
|
getTrackersAveragePositionExpression(trackPts)
Determines Track Points - Average Position expression
|
|
|
getTrackersCornerPinExpression(trackPts)
Determines Track Points - Corner Pin expression
|
|
|
getTrackersPositionExpression(trackPts)
Determines Track Points - Position expression
|
|
|
getTrackersRotationExpression(trackPts)
Determines Track Points - Rotation expression
|
|
|
getTrackersScaleExpression(trackPts)
Determines Track Points - Scale expression
|
|
|
getTrackersTrackCombineExpression(trackPt)
Determines Track Points - Track Combine expression
|
|
|
Determines Track Points - Tracker To Shape point control expression
|
|
|
layersAveragePositionFunct(comp, aSel, pgsBr)
Applies Average Position function to selected layers
|
|
|
layersCornerPinFunct(comp, aSel, pgsBr)
Applies Corner Pin function to selected layers
|
|
|
layersPositionRotationFunct(comp, aSel, pgsBr)
Applies Position Rotation function to selected layers
|
|
|
layersPositionRotationScaleFunct(comp, aSel, pgsBr)
Applies Position Rotation Scale function to selected layers
|
|
|
layersPositionScaleFunct(comp, aSel, pgsBr)
Applies Position Scale to selected layers
|
|
|
layersPowerPinFunct(comp, aSel, pgsBr)
Applies Power Pin function to selected layers
|
|
|
layersToShapeFunct(comp, pgsBr)
Applies Layers To Shape function to selected layers
|
|
|
layersTrackCombineFunct(comp, aSel, pgsBr)
Applies Track Combine function to selected layers
|
|
|
proceed(pal)
Applies selected function to selected data
|
|
|
run(thisObj)
Runs the script
|
|
|
shapeToLayersFunct(props, pgsBr)
Applies Shape To Layers function to selected path
|
|
|
shapeToTrackerFunct(props, pgsBr)
Applies Shape To Tracker function to selected path
|
|
|
trackPointsAveragePositionFunct(props, aSel, pgsBr)
Applies Average Position function to selected track points
|
|
|
trackPointsCornerPinFunct(An, aSel, pgsBr)
Applies Corner Pin function to selected track points
|
|
|
trackPointsPositionRotationFunct(props, aSel, pgsBr)
Applies Position Rotation function to selected track points
|
|
|
trackPointsPositionRotationScaleFunct(props, aSel, pgsBr)
Applies Position Rotation Scale function to selected track points
|
|
|
trackPointsPositionScaleFunct(props, aSel, pgsBr)
Applies Position Scale function to selected track points
|
|
|
trackPointsPowerPinFunct(An, aSel, pgsBr)
Applies Power Pin function to selected track points
|
|
|
trackPointsToShapeFunct(props, pgsBr)
Applies Track Points To Shape function to selected track points
|
|
|
trackPointsTrackCombineFunct(comp, aSel, pgsBr)
Applies Track Combine function to selected track point and its parent layer
|
Class Detail
TrackerViz()
This class represents the main class of the script; it is used to create the user interface which allows to execute the script functions
Method Detail
autoRenameLayers(comp)
Renames layers having the same name
- Parameters:
- {Object} comp
- A comp object
autoRenameTrackPoints(comp)
Renames track points having the same name
- Parameters:
- {Object} comp
- A comp object
buildUI(thisObj)
Creates and displays the script interface
- Parameters:
- {Object} thisObj
- A Panel object if the script is launched from the Window menu, null otherwise
checkActiveItem()
Determines whether the active item is a composition
- Returns:
- True if the active item is not a composition, False otherwise
createLayerFromItem(comp, itemIndex)
Creates a new comp layer from a project item
- Parameters:
- {Object} comp
- A comp object receiving the layer
- {Number} itemIndex
- The index of the project item
createNewSolid(comp)
Creates a new solid with predefined settings
- Parameters:
- {Object} comp
- A comp object in which the layer will be created
createOptionsDlg(pal)
Creates and displays Options dialog
- Parameters:
- {Object} pal
- The parent palette or dockable panel from which the dialog is called, it contains all user parameters
createTargetDlg(pal)
Creates and displays Target dialog
- Parameters:
- {Object} pal
- The parent palette or dockable panel from which the dialog is called, it contains all user parameters
createToolsDlg()
Creates and displays Tools palette
{String}
getLayersAveragePositionExpression(layers)
Determines Layers - Average Position expression
- Parameters:
- {Array} layers
- An array of layers
- Returns:
- {String} A position expression
{Array}
getLayersCornerPinExpression(layers)
Determines Layers - Corner Pin expression
- Parameters:
- {Array} layers
- An array of layers
- Returns:
- {Array} An array of strings representing the corner pin expressions
{String}
getLayersPositionExpression(layers)
Determines Layers - Position expression
- Parameters:
- {Array} layers
- An array of layers
- Returns:
- {String} A position expression
{String}
getLayersRotationExpression(layers)
Determines Layers - Rotation expression
- Parameters:
- {Array} layers
- An array of layers
- Returns:
- {String} A rotation expression
{String}
getLayersScaleExpression(layers)
Determines Layers - Scale expression
- Parameters:
- {Array} layers
- An array of layers
- Returns:
- {String} A scale expression
{String}
getLayersToShapePointControlExpression(layer)
Determines Layers - To Shape point control expression
- Parameters:
- {Object} layer
- A layer object
- Returns:
- {String} A point control expression
{String}
getLayersTrackCombineExpression(childLayer)
Determines Layers - Track Combine expression
- Parameters:
- {Object} childLayer
- The child layer
- Returns:
- {String} A position expression
{String}
getTrackersAveragePositionExpression(trackPts)
Determines Track Points - Average Position expression
- Parameters:
- {Array} trackPts
- An array of track points
- Returns:
- {String} A position expression
{Array}
getTrackersCornerPinExpression(trackPts)
Determines Track Points - Corner Pin expression
- Parameters:
- {Array} trackPts
- An array of track points
- Returns:
- {Array} An array of strings representing the corner pin expressions
{String}
getTrackersPositionExpression(trackPts)
Determines Track Points - Position expression
- Parameters:
- {Array} trackPts
- An array of two track points
- Returns:
- {String} A position expression
{String}
getTrackersRotationExpression(trackPts)
Determines Track Points - Rotation expression
- Parameters:
- {Array} trackPts
- An array of two track points
- Returns:
- {String} A rotation expression
{String}
getTrackersScaleExpression(trackPts)
Determines Track Points - Scale expression
- Parameters:
- {Array} trackPts
- An array of two track points
- Returns:
- {String} A scale expression
{String}
getTrackersTrackCombineExpression(trackPt)
Determines Track Points - Track Combine expression
- Parameters:
- {Object} trackPt
- A track point property
- Returns:
- {String} A position expression
{String}
getTrackerToShapePointControlExpression(trackPt)
Determines Track Points - Tracker To Shape point control expression
- Parameters:
- {Object} trackPt
- A track point property
- Returns:
- {String} A point control expression
layersAveragePositionFunct(comp, aSel, pgsBr)
Applies Average Position function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
layersCornerPinFunct(comp, aSel, pgsBr)
Applies Corner Pin function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
layersPositionRotationFunct(comp, aSel, pgsBr)
Applies Position Rotation function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
layersPositionRotationScaleFunct(comp, aSel, pgsBr)
Applies Position Rotation Scale function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
layersPositionScaleFunct(comp, aSel, pgsBr)
Applies Position Scale to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
layersPowerPinFunct(comp, aSel, pgsBr)
Applies Power Pin function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
layersToShapeFunct(comp, pgsBr)
Applies Layers To Shape function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Object} pgsBr
- A progress bar object
layersTrackCombineFunct(comp, aSel, pgsBr)
Applies Track Combine function to selected layers
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
proceed(pal)
Applies selected function to selected data
- Parameters:
- {Object} pal
- A palette or a dockable panel containing all user parameters
run(thisObj)
Runs the script
- Parameters:
- {Object} thisObj
- A Panel object if the script is launched from the Window menu, null otherwise
shapeToLayersFunct(props, pgsBr)
Applies Shape To Layers function to selected path
- Parameters:
- {Object} props
- An array of properties
- {Object} pgsBr
- A progress bar object
shapeToTrackerFunct(props, pgsBr)
Applies Shape To Tracker function to selected path
- Parameters:
- {Object} props
- An array of properties
- {Object} pgsBr
- A progress bar object
trackPointsAveragePositionFunct(props, aSel, pgsBr)
Applies Average Position function to selected track points
- Parameters:
- {Array} props
- An array of properties
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
trackPointsCornerPinFunct(An, aSel, pgsBr)
Applies Corner Pin function to selected track points
- Parameters:
- {Array} An
- array of properties
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
trackPointsPositionRotationFunct(props, aSel, pgsBr)
Applies Position Rotation function to selected track points
- Parameters:
- {Array} props
- An array of properties
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
trackPointsPositionRotationScaleFunct(props, aSel, pgsBr)
Applies Position Rotation Scale function to selected track points
- Parameters:
- {Array} props
- An array of properties
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
trackPointsPositionScaleFunct(props, aSel, pgsBr)
Applies Position Scale function to selected track points
- Parameters:
- {Array} props
- An array of properties
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
trackPointsPowerPinFunct(An, aSel, pgsBr)
Applies Power Pin function to selected track points
- Parameters:
- {Array} An
- array of properties
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object
trackPointsToShapeFunct(props, pgsBr)
Applies Track Points To Shape function to selected track points
- Parameters:
- {Array} props
- An array of properties
- {Object} pgsBr
- A progress bar object
trackPointsTrackCombineFunct(comp, aSel, pgsBr)
Applies Track Combine function to selected track point and its parent layer
- Parameters:
- {Object} comp
- A comp object
- {Number} aSel
- The index of selected animation method (0:expression, 1:keyframes)
- {Object} pgsBr
- A progress bar object