Create Trimmed Adjustment Layer




Version: 1.0 Sign up to be notified by email when a new version of this script is posted
Based on a user request here on aescripts, CreateTrimmedAdjustmentLayer will create a new Adjustment Layer and trim it to the range of the selected layers.
CreateSeveralTrimmedAdjustmentLayers will create an adjustment layer for each of the selected layers. The new adj layer can have a custom name defined in the User Variables section and also has the option of including the name of the layer that it’s adjusting below.
Package includes both scripts.
The definitive collection of scripts and plugins for Adobe After Effects







This script is gold! I also love how they are black solids. Just one more request pretty please? can you please make it so when I select more than one layer, the script creates seperate trimmed adjustment layers for those layers instead of one?
Again thank you so much for your wonderful scripts.
done!
It’s perfect! This is a massive time saver. Thanks so much!
WOW!!! you read people minds.i was waiting for that to come.
i wonder if you can come up with a script that automatically adjust the work area apone a selected layer/layers.
great job on this one body!
Thanks.
That functionality is already built in to AE:
http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103a9d3c597-797a.html
Super useful, thanks!
Sorry, slightly off topic but, (i couldn’t find a requests section) is it possible to write a script to that adds options to your adjustment layers that let you single out what layers below it get effected? This would minimize comping greatly.
Thanks again,
-A
can you create one for Null objects as well? That would be beyond awesome.
pls give me the MasksToLayers.jsx file if u have it
tnx u are the best
Is this script compatible with AE CS3? I appear to be having some problems getting it to work.
Here is what I did:
1. Create a solid in a new comp, dropped Fractal Noise onto it.
2. Create a second sold above the first layer, drew a mask on it.
3. Selected this “top” layer, went to File -> Scripts, CreateTrimmedAdjustmentLayer.
4. Dragged HUE/SATURATION onto the Adjustment layer. Selected Colorize, and it changed the color of BOTH layers.
I also tried using “CreateSeveralTrimmedAdjustmentLayers”. This creatied an Adjustment Layer, and renamed it just to the “top” layer’s name. Which was the only one I had selected. Added HUE/SATURATION again, still effected ALL layers.
Please advise! Thanks!
@Stephen – You might not be understanding correctly how adjustment layers work. Here’s the AE docs that explain their functionality. Essentially an adjustment layer will affect all layers below it.
It doesn’t work for me (cs4)
Can you describe what you are experiencing with a little more detail so we can help you get it working?
Is there a version for this that works with regular layers/precomps?
what doing work expressen scripts
Hello there Lloyd, your script is great! but I was wondering, is there a way to create a single adjustment layer, and hard-keyframe it according to the layers below? this would be very useful for color correcting edited footage, and keeping just one adjustment layer. (and could also improve rendering speed)
I Just re- read my post, and it was a little vague. Lets say I have 45 clips-layers on a composition… and all of them just need to be color corrected… so lets say, I use the following effects to color correct my footage.. Levels, Hue / Saturation, Tint. So, instead of aplying the same 3 effects to every clip…. I can create a single adjustment layer, with those 3 effects keyframed acording to the in-out of every layer… and that way, when I edit the effect on the adjustment layer, im certain that it wont affect the next clip.
That’s an interesting workflow but it makes it hard to make a general market script for it because everyone uses different effects to CC and some CC effects are not keyframeable which is why the workflow that I use is I use this script to create individually trimmed adjustment layers and then simply select that adj layer when i need to tweak the CC settings. I also use Zorro to quickly hide all other clips from the timeline so that my workspace isn’t cluttered.
It would be great if you could also select multiple layers and create a trimmed adjustment layer that starts at the in point of the earliest (in time) layer and ends at the out point of the latest (in time) layer.
For instance, let’s say I have 5 layers staggered, the first starts at 10 seconds in the timeline, the last ends at 30 seconds. Now I want to adjust all the footage with an adjustment layer. I highlight all 5 layers and create a trimmed adjustment layer that covers all of them.
I’ve read the other comments here, and I’m not quite clear on if this was already suggested or not.
Thanks!
Dave
The script already does this. There’s two scripts included: CreateTrimmedAdjustmentLayer which will create an adjustement layer trimmed to the range of all the selected layers and: CreateSeveralTrimmedAdjustmentLayers that will create a trimmed adjustment layer for each selected layer.
Lloyd -
Yes, that is a great feature, the create several adjustment layers.
But I’m talking about creating one adjustment layer that is the length of the multiple layers selected. That way I can apply the one effect I want to all the layers (assuming I want to apply the exact same thing to them. If not, I’d use the already existing create several adjustment layers).
- Dave
Please re-read my response. CreateTrimmedAdjustmentLayer does exactly what you ask.
Ah, yes, it does. Didn’t realize that. I guess you did think of everything!
Thanks,
Dave
Also, for those out there who want to make this script work for solids, it’s pretty easy.
Use the script editor to edit this script, and where it says
newAdjLayer.adjustmentLayer = true;
Change the true to false, and rename the script. This creates a black solid. Change the [0,0,0] to something else for another color.
I guess it would be easy to create a trimmed null too, although I haven’t tried yet.
Or you could just click off the adjustment layer switch and you have a solid. Easier.
My request is to make it dockable? Great script, thanks for your work!