Expressions/Scripts/Presets

Search found 14 matches

by zlovatt
Wed Dec 06, 2017 8:02 pm
Forum: Announcements
Topic: Online Documentation Guides
Replies: 0
Views: 59

Online Documentation Guides

Below are links to scripting guides and documentation for various products, all of which are kept up-to-date with the latest releases of the host application, and are easily bookmarkable/searchable/savable. All are open-source, public contribution-friendly, and are the result of many hours and days ...
by zlovatt
Wed Dec 06, 2017 7:57 pm
Forum: Script Tutorials
Topic: Atom text editor for after effects scripting
Replies: 1
Views: 86

Re: Atom text editor for after effects scripting

This Zack doesn't use Atom, and never has. I used to use Sublime Text 3 with a heavily modified version of Sebastian Lavoie's "Extendscript" package to easily execute scripts directly in AE. His version would copy scripts to specific folders and I found this unnecessary, so modified it to ...
by zlovatt
Wed Dec 06, 2017 7:47 pm
Forum: Scripts Discussion
Topic: Get world position of trim path point?
Replies: 1
Views: 64

Re: Get world position of trim path point?

Using CC18 and later, AE expressions have access to more path-related functions; you can use "pointOnPath" and feed it a % to get the actual X and Y positions along a path and different percents.

Check out the documentation here: http://expressions.aenhancers.com/path-property.html
by zlovatt
Wed Jul 05, 2017 12:19 pm
Forum: Scripts Discussion
Topic: Need help about a script! (New to scripting)
Replies: 2
Views: 358

Re: Need help about a script! (New to scripting)

Luckily this is a simple fix! Change from this-- for (var i=0; i <= selectedItems.length; i++) { to-- for (var i=0; i < selectedItems.length; i++) { The issue is that selectedItems is an array counting from 0; if there were 3 elements, you would access them by array[0], array[1], array[2]. So, you w...
by zlovatt
Mon Mar 20, 2017 1:57 pm
Forum: Scripts Discussion
Topic: Change Font and Font Style by script
Replies: 1
Views: 2299

Re: Change Font and Font Style by script

Via Tomas Sinkunas, these are all the script-accessible text properties. It looks like you'll need to set the font to "Arial-Bold" and that could work. var textLayer = comp1_comp.layers.addText("This is BOLD"); var textLayer_TextProp = textLayer.property("ADBE Text Propertie...
by zlovatt
Mon Mar 13, 2017 5:46 pm
Forum: Expression Discussion
Topic: How to Apply specific values to a Slider Control
Replies: 3
Views: 787

Re: How to Apply specific values to a Slider Control

@runegan Thanks! Forgot about that. Updated my post.
by zlovatt
Sat Mar 11, 2017 1:42 pm
Forum: Expression Discussion
Topic: How to Apply specific values to a Slider Control
Replies: 3
Views: 787

Re: How to Apply specific values to a Slider Control

Hey Melvin, One approach would be to store all of the values in an array, and then have the slider control which item in the array it returns. * Edited: forgot clamp() was available in expressions, thanks runegan!* // Get the slider var slider = effect("Slider Control")("Slider")...
by zlovatt
Wed Feb 15, 2017 11:47 pm
Forum: Script requests
Topic: Make a script to parent bottom layer to current selected layer.
Replies: 2
Views: 910

Re: Make a script to parent bottom layer to current selected layer.

I've written something like this before, you can view it here . Only difference is, in this case the selected layers parent to the layer above, not the other way around. Save this somewhere, select each layer you want to be parented, and then run the script and it will parent each selected layer to ...
by zlovatt
Wed Nov 23, 2016 1:52 pm
Forum: Scripts Discussion
Topic: system.callSystem and clipboard not working
Replies: 3
Views: 3683

Re: system.callSystem and clipboard not working

While this is an ancient post, it's the most recent of various "callSystem copy to clipboard" threads. So -- here's how you can do this on Windows. My guess is that the first instance of `cmd` is closing before the output can be fed to the clipboard, but nesting it like this works just fin...
by zlovatt
Wed Nov 09, 2016 6:02 am
Forum: Scripts Discussion
Topic: Set Marker Duration
Replies: 3
Views: 800

Re: Set Marker Duration

Note that this feature was only added in AE 14.0 -- there's an example code block here that shows how you can do it.
by zlovatt
Mon Nov 07, 2016 1:46 pm
Forum: Expression Discussion
Topic: Expression explanation
Replies: 1
Views: 878

Re: Expression explanation

I'd say it's using sourceRectAsTime-- check out this tutorial for a good how-to: https://www.youtube.com/watch?v=kI3yzx6CATg
by zlovatt
Fri Nov 04, 2016 7:18 pm
Forum: Scripts Discussion
Topic: Online, Searchable AE Scripting Guide
Replies: 1
Views: 1051

Online, Searchable AE Scripting Guide

Hey! Tired of dealing with After-Effects-CS6-Scripting-Guide.pdf? Wondering what's changed since 2012 in the scripting API? Looking for SOME form of documentation for the little quirks and gotchas of what IS in the guide? Head over to  http://docs.aenhancers.com/ for an updated, searchable version o...
by zlovatt
Fri Nov 04, 2016 7:13 pm
Forum: Announcements
Topic: After Effects CC 2017 (14.0) New Scripting Functionality
Replies: 0
Views: 1016

After Effects CC 2017 (14.0) New Scripting Functionality

⋅ Scripting Access to Tools ( app.project.toolType ) ⋅ Scripting Access to Composition Markers ( comp.markerProperty ) ⋅ Scripting Access to Queue in AME ( app.project.renderQueue.queueInAME(render_immediately_in_AME) ) ⋅ Scripting Access to Available...
by zlovatt
Fri Nov 04, 2016 8:18 am
Forum: Announcements
Topic: New Host!
Replies: 1
Views: 3123

New Host!

Hey all! aenhancers has been moved to a new host, with some new improvements to the front- and back-end; things should be smoother and faster from here on out. We're looking to make some further enhancements to the site and functionality it provides; f eel free to reach out to me directly with any i...