Skip to content

Instantly share code, notes, and snippets.

@aescripts
aescripts / Separate Dimensions.jsx
Created November 14, 2017 16:04
#AfterEffects #Script #KBar
try {
app.project.activeItem.selectedLayers[0].selectedProperties[0].dimensionsSeparated = true;
}
catch (e) {
alert (e);
}
@aescripts
aescripts / Solid Settings Changer.jsx
Last active May 5, 2023 15:22
#AfterEffects #Script #KBar #Scriptlet Solid Settings Changer
// Solid Settings Changer
// Select items in the Project panel
// Enter new dimensions and click Do it!
// ©2020 Lloyd Alvarez https://aescripts.com/
la_SolidSettingsChanger(this);
function la_SolidSettingsChanger(thisObj) {
@aescripts
aescripts / Pseudo Onion Skin.jsx
Last active February 14, 2023 05:34
Nik Ska #AfterEffects #Script #KBar Applies Echo effect to selected layers with settings that work like onion Skin from Adobe Flash.
// Applies Echo effect to selected layers with settings that work like onion Skin from Adobe Flash.
var activeComp = app.project.activeItem;
if(activeComp){
var selLayers = activeComp.selectedLayers;
for(var i = 0; i< selLayers.length; i++){
var echoEffect = selLayers[i]("Effects").addProperty("Echo");
echoEffect(2).setValue(9); //Adjust EchoTime
echoEffect(4).setValue(.5); //Adjust Decay
}
@aescripts
aescripts / Parent Selected Layers.jsx
Created November 14, 2017 15:58
#AfterEffects #Script #KBar #ParentLayers
//Select the layers to be parented. The first selected layer will be the parent.
2
3 app.beginUndoGroup("Parent Selected Layers");
4
5 if (app.project.activeItem.selectedLayers.length > 1){
6
7 var parent = app.project.activeItem.selectedLayers[0];
8 for (var i = 1; i < app.project.activeItem.selectedLayers.length; i++){
9 app.project.activeItem.selectedLayers[i].parent = parent;
10 }
@aescripts
aescripts / Loop Selected Layers.jsx
Last active August 27, 2022 20:26
Zack Lovatt #AfterEffects #Script #KBar This will run through all selected layers, enables time remap & add loopOut('cycle') expression for all eligible layers. One-step solution to a common issue. If the wrong thing is selected or layer can't be remapped, user will be alerted of the fact.
/**********************************************************************************************
LOOP SELECTED LAYERS
For use w/ KBar (https://aescripts.com/kbar) or other script launchers.
This will run through all selected layers, enable time remap,
and add cycle loop -- all in one click.
If the wrong thing is selected or layer can't be remapped,
user will be alerted of the fact.
@aescripts
aescripts / AutoTrace and copy Masks from Layer Above.jsx
Last active August 20, 2022 06:42
#AfterEffects #Script #KBar #AutoTrace Auto Traces and copies the masks from the layer above
/*
AutoTrace and copy Masks from Layer Above.jsx
By Lloyd Alvarez https://aescripts.com/
Selects the layer above
Invokes Auto-Trace...
Copies the masks to the layer below
Deletes the layer above
*/
try{
app.beginUndoGroup("Auto-trace and copy masks from Layer Above");
@aescripts
aescripts / Value at Current Time for KBar's button in After Effects.jsx
Created November 27, 2017 23:38
François Tarlier #AfterEffects #Script #KBar this snippet will set a defined value on the selected properties at the current time of the comp
// this snippet will set a defined value on the selected properties at the current time of the comp
/*********************************************************
VALUE AT CURRENT TIME
snippet for After Effects
made for ft-Toolbar http://aescripts.com/ft-toolbar/ or KBar https://aescripts.com/kbar
http://www.francois-tarlier.com
*********************************************************/
// this snippet will set a defined value on the selected properties at the current time of the comp
@aescripts
aescripts / Cycle Through Letters.jsx
Last active August 20, 2022 06:33
#AfterEffects #Expression as requested by @ABAOProductions https://twitter.com/abaoproductions/status/940609265638760454
/*
As requested by @ABAOProductions https://twitter.com/abaoproductions/status/940609265638760454
Add this expression to the SourceText property of a Text Layer
*/
a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
fps=1;
a.charAt((timeToFrames(time,fps)%a.length-1)+1);
@aescripts
aescripts / objFile vertices to AE Nulls.jsx
Created June 8, 2018 14:43
Will read an OBJ file and create After Effects nulls for every vertex #AfterEffects #Script #KBar #OBJ #Nulls
// objFile vertices to AE Nulls
// © 2018 Lloyd Alvarez https://aescripts.com/
//
// Select a comp first then run the script and select the OBJ file
//
objFile_vertices_to_AE_Nulls();
function objFile_vertices_to_AE_Nulls () {
var objFile = File.openDialog("Please choose OBJ file");
@aescripts
aescripts / Time-Reverse Keyframes.jsx
Created June 18, 2018 13:41
#AfterEffects #Script #KBar #Time-Reverse-Keyframes
//Time-Reverse Keyframes.jsx
//©2009 aescripts.com
//
// Executes the Time-Reverse Keyframes Keframes Assistant found in the Animation menu
// Assign it to a KBar button or keyboard shortcut: https://helpx.adobe.com/after-effects/using/keyboard-shortcuts-reference.html
//
app.executeCommand(app.findMenuCommandId("Time-Reverse Keyframes"));