Search found 47 matches

by zlovatt
September 26th, 2024, 8:11 pm
Forum: Scripts Discussion
Topic: Script(s) were working great,. didn't change a thing, then just stop working properly!
Replies: 1
Views: 307

Re: Script(s) were working great,. didn't change a thing, then just stop working properly!

Unless you post the script, folks won't be able to help!

It's almost certainly an issue in your script–not AE–& a result of having autocomplete try to write functional tools.
by zlovatt
December 11th, 2022, 11:51 am
Forum: Scripts Discussion
Topic: Cannot use "for-of" syntax and "forEach"
Replies: 1
Views: 17104

Re: Cannot use "for-of" syntax and "forEach"

Extendscript is a version of Javascript from 1999, and so you're limited to the features available in ECMA3.

What you'll need to use is a for loop:

Code: Select all

for (var i = 0; i < items.length; i++) {
  var item = items[i];
  ...
}
by zlovatt
October 25th, 2021, 9:54 pm
Forum: Scripts Discussion
Topic: Call expression from script
Replies: 1
Views: 18482

Re: Call expression from script

You could apply the expression to a property:

Code: Select all

property.expression = "wiggle(0.5, 100)";

and then get the post-expression value of the property;

Code: Select all

var expressionResult = property.valueAtTime(comp.time, false);
by zlovatt
October 25th, 2021, 9:52 pm
Forum: General Scripts Library
Topic: Detect which frames are in ram preview
Replies: 1
Views: 21994

Re: Detect which frames are in ram preview

No, this isn't possible via scripting.

by zlovatt
July 16th, 2021, 3:00 pm
Forum: Scripts Discussion
Topic: Script Problem VS Studio AFX
Replies: 2
Views: 21035

Re: Script Problem VS Studio AFX

Can you post the full error? The part you left to "..." probably tells you exactly what the issue is.

Would also help if you let us know which line of what you pasted is the line 20 that it's talking about.

by zlovatt
March 21st, 2021, 10:59 am
Forum: Scripts Discussion
Topic: Too many sliders, pseudo effect?
Replies: 2
Views: 22078

Re: Too many sliders, pseudo effect?

My general workflow in this situation: Create the pseudoeffect however you normally would Apply it to a layer temporarily Add the expressions to other properties in the pseudoeffect, if needed Save the expression-rigged pseudoeffect as a ffx From your script, apply the rigged pseudoeffect to your la...
by zlovatt
November 23rd, 2020, 12:30 pm
Forum: Scripts Discussion
Topic: Copy to Clipboard
Replies: 2
Views: 29880

Re: Copy to Clipboard

For what it's worth, aequery has a copyToClipboard() function-- https://aequery.aenhancers.com/aeq.comm ... oClipboard

by zlovatt
October 29th, 2020, 2:33 pm
Forum: Expression Discussion
Topic: How to link text properties between different text layers?
Replies: 2
Views: 26141

Re: How to link text properties between different text layers?

Using the new expression engine & a recent version of AE (that supports text styling), this will clone the text content and the text layer style from one text layer to another. Apply to the destination's Source Text field: const ref = thisComp.layer("Driver Text Layer").text.sourceText...
by zlovatt
October 5th, 2020, 10:55 am
Forum: Scripts Discussion
Topic: Change Font and Font Style by script
Replies: 4
Views: 59136

Re: Change Font and Font Style by script

dave modis wrote: September 29th, 2020, 11:02 am

There is an existing script for Changing the fonts in a project.
It does that and a lot more
FontMate:
https://www.vdodna.com/products/fontmate/

Speaking of existing scripts, pt_textedit has been doing this since 2010 :wink:

by zlovatt
August 10th, 2020, 10:20 am
Forum: Expression Discussion
Topic: Is there an idiots guide to thinking like a coder?
Replies: 3
Views: 25104

Re: Is there an idiots guide to thinking like a coder?

The Expression Session course on School of Motion is made to walk you through how to think like a coder & get started writing AE expressions, from the point of view of a designer / animator! Literally who it's targeted for :)

Full disclosure, I'm one of the instructors / creators of it.

by zlovatt
July 13th, 2019, 10:13 pm
Forum: Script Tutorials
Topic: Atom text editor for after effects scripting
Replies: 10
Views: 79319

Re: Atom text editor for after effects scripting

I use Visual Studio Code, and have a writeup here: http://zacklovatt.com/visual-studio-code-stuff/ Also, Extendscript Toolkit is being EOL'd in favour of a VS Code plugin: https://medium.com/adobetech/extendscript-debugger-1-1-0-released-5f2e1a068e89 -- this will be the only officially supported way...