- Open After Effects and ensure that a composition is active.
- Run the script, either by adding it to a script menu or by copying and pasting it into the After Effects script editor.
- The script will automatically create the neccesary process in the active composition.
This script is designed to create a V-shaped composition in After Effects using two animated rectangular layers.
- Checks if a composition is active and if so, creates the V-shaped composition within it.
- Creates a background layer with a white solid.
- Adds two rectangular layers, one on the left side and one on the right side, and animates them to form a V-shape.
- The script first checks if a composition is active and if so, retrieves a reference to it using the
getActiveComposition
function. - The
createVShapeWithRectangles
function is then called, which is responsible for creating the V-shaped composition. - Inside the
createVShapeWithRectangles
function:- A background layer is created with a white solid.
- Two rectangular layers are created using the
createRectangle
function, one on the left side and one on the right side. - The
animateRectangle
function is used to animate the position of the two rectangular layers, creating the V-shape.
- The
createRectangle
function is responsible for creating a rectangular shape layer with the given properties (name, rotation, size, and color) and returning the layer. - The
animateRectangle
function sets the position animation of the given layer, moving it from the start position to the end position over the specified duration.
Overall, this script provides a simple and efficient way to create a V-shaped composition in After Effects using rectangular layers and animation.
This script is designed to create a new composition from the active composition in After Effects, allowing the user to select which layers to include in the new composition.
- The script first checks if a composition is active and if it has any layers. If not, it displays an alert message and returns.
- It then creates a new dialog window and adds various UI elements to it, such as a name field, layer checkboxes, a progress bar, and buttons.
- The
setOkButtonAction
function sets the action for the "OK" button, which checks if a composition with the same name already exists, and if not, creates a new composition with the selected layers. - The
setCancelButtonAction
function sets the action for the "Cancel" button, which simply closes the dialog window. - The script uses several helper functions to create and manage the various UI elements, such as
getActiveComposition
,createDialogWindow
,addNameField
,addLayerCheckboxes
,addGroup
,addProgressBar
, andaddButtons
.
Overall, this script provides a simple and efficient way to create a new composition from the active composition in After Effects, allowing the user to selectively include layers in the new composition.