Search found 10 matches

by pablohotsauce
November 9th, 2019, 6:13 pm
Forum: Expression Discussion
Topic: Create Counter that Increments By Marker
Replies: 2
Views: 14353

Re: Create Counter that Increments By Marker

You're trying to make the text layer show the most recent marker index, so that whenever the time indicator passes a marker the text layer increments by one? let myMarkers = thisComp.layer("name of your marker layer").marker; let n = myMarkers.nearestKey(time).index; // get index of the cl...
by pablohotsauce
October 21st, 2019, 12:34 am
Forum: Expression Discussion
Topic: reverse-engineering linear() and ease()?
Replies: 1
Views: 12529

Re: reverse-engineering linear() and ease()?

Figured it out a while ago. According to StackOverflow, this type of function is a variation on what's called linear interpolation. My reverse-engineered version of AE's variation is below, in basic JavaScript. To apply eases, find some easing equation online and modify the var refProportion using t...
by pablohotsauce
October 11th, 2019, 12:15 am
Forum: Expression Discussion
Topic: Adjusting line space based on the text layer height
Replies: 2
Views: 13574

Re: Adjusting line space based on the text layer height

Yeah, the Line Spacing property is behaving weird for me too. Maybe the type animators are buggy when it comes to Expressions, or there's some strange logic to the way they handle Expressions value assignments that I don't know about. I set your LineSpace var to a number of different things to test....
by pablohotsauce
October 10th, 2019, 1:51 pm
Forum: Expression Discussion
Topic: reverse-engineering linear() and ease()?
Replies: 1
Views: 12529

reverse-engineering linear() and ease()?

A while ago, I tried reverse-engineering AE's native linear() function, basically trying to recreate it from scratch. I was trying to do some auto-proximity animations in Blender, on a big array of 3D objects. I couldn't figure out the exact math + logic though, so my version didn't work exactly lik...
by pablohotsauce
September 14th, 2019, 5:30 pm
Forum: Scripts Discussion
Topic: exposing obscure / hidden AE commands to scripting?
Replies: 3
Views: 13284

Re: exposing obscure / hidden AE commands to scripting?

...Buuuut tons of AE ops are still hidden, so I submitted a UserVoice idea, if anyone wants to vote for it or make suggestions:
https://adobe-video.uservoice.com/forum ... ds-to-scri
by pablohotsauce
September 13th, 2019, 6:47 pm
Forum: Expression Discussion
Topic: Has anyone found a practical use for the $.global object?
Replies: 5
Views: 20092

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

More on my blog here: https://blob.pureandapplied.com.au/the-global-object-in-after-effects/ Ahh nice, I was close: I just needed to take out ".global" in my earlier code. BTW, related to the global function in your blog post, if you want to be on more stable ground (i.e., avoid using $),...
by pablohotsauce
September 11th, 2019, 10:34 pm
Forum: Scripts Discussion
Topic: exposing obscure / hidden AE commands to scripting?
Replies: 3
Views: 13284

Re: exposing obscure / hidden AE commands to scripting?

(years later) I was about to post to UserVoice, then tried one last time to find the command IDs for the stuff I wanted, and miraculously it worked. Either 16.1.2 introduced new command IDs, or they were always there but I didn't know how to find them when I first started this thread. For anyone won...
by pablohotsauce
May 11th, 2019, 2:31 am
Forum: Expression Discussion
Topic: Has anyone found a practical use for the $.global object?
Replies: 5
Views: 20092

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

But I wanna break stuff :( I figured it probably wasn't useful, but now I'm frustrated that I can't remember what code I used to get a buggy global variable working, a while back. Either the code in my original post is wrong, or it did actually work in 16.0.1, but that behavior got patched out in 16...
by pablohotsauce
April 29th, 2019, 10:51 pm
Forum: Expression Discussion
Topic: Has anyone found a practical use for the $.global object?
Replies: 5
Views: 20092

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

A few weeks ago, I messed around with trying to create global variables in Expressions. I remember adding some code similar to this to a text layer's Source Text property: $.global.myVar1 = "hello world"; And then in another text layer's Source Text prop, I called that var: $.global.myVar1...
by pablohotsauce
April 13th, 2019, 2:40 pm
Forum: Scripts Discussion
Topic: exposing obscure / hidden AE commands to scripting?
Replies: 3
Views: 13284

exposing obscure / hidden AE commands to scripting?

There are some AE commands that don't seem to be available as menu commands and/or as commands in the Keyboard Shortcuts dialog. I want to be able to expose some of these to scripting so that I can assign keyboard shortcuts to those scripts, to call the commands. For example, some of my most-used co...