Search found 40 matches

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

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: 7490

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: 1290

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; // Copy the ...
by zlovatt
October 5th, 2020, 10:55 am
Forum: Scripts Discussion
Topic: Change Font and Font Style by script
Replies: 4
Views: 24054

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: 1895

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: 34202

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...
by zlovatt
May 7th, 2019, 4:50 pm
Forum: Scripts Discussion
Topic: Simple question: how to embed images into jsx files?
Replies: 2
Views: 7700

Re: Simple question: how to embed images into jsx files?

Take a look at "Displaying Images" in the Javascript Tools Guide: http://estk.aenhancers.com/4%20-%20User ... ing-images
by zlovatt
May 7th, 2019, 4:50 pm
Forum: Scripts Discussion
Topic: A script with a viewer
Replies: 2
Views: 8261

Re: A script with a viewer

This is an avenue you can explore, though doing this within a scriptUI panel may prove difficult; it may be worth exploring an Extension, as they come with an HTML5 frontend that could draw the rendered animation simpler than in extendscript.
by zlovatt
May 7th, 2019, 4:49 pm
Forum: Scripts Discussion
Topic: How to fix an uncaught javascript exception error generated in the internal extendscript code
Replies: 1
Views: 6837

Re: How to fix an uncaught javascript exception error generated in the internal extendscript code

Yeaa this is an annoying bug of ESTK. Occasionally errors that shouldn't be caught just... are. In my experience they usually only catch the first time, and after that it's fine and works as expected.
by zlovatt
May 7th, 2019, 4:47 pm
Forum: Scripts Discussion
Topic: Copy() function doesn't work with big files
Replies: 2
Views: 7166

Re: Copy() function doesn't work with big files

A better approach may be to use

Code: Select all

system.callSystem()
instead, and write OS-level commands to copy the file. This way is more robust and much more flexible.
by zlovatt
May 7th, 2019, 4:44 pm
Forum: Expression Discussion
Topic: Has anyone found a practical use for the $.global object?
Replies: 4
Views: 9306

Re: Has anyone found a practical use for the $.global object?

Any sort of shared space is incidental, buggy, and shouldn't be relied upon. Don't do this.
by zlovatt
May 7th, 2019, 4:42 pm
Forum: Expressions Library
Topic: Create a timecode with expressions
Replies: 16
Views: 76342

Re: Create a timecode with expressions

Hey! What you can do: Create a slider on your layer Animate it from 1 -> higher Replace your expression with this one (below) Where I wrote {pickwhip slider here}, delete that and pickwhip the slider. function pad(str, max) { str = str.toString(); return str.length < max ? pad("0" + str, max) : str;...