Expressions/Scripts/Presets

Search found 15 matches

by stib
Tue Nov 10, 2015 5:13 am
Forum: Scripts Discussion
Topic: toWorld scripting equivalent
Replies: 2
Views: 2383

Re: toWorld scripting equivalent

I was looking for exactly the same thing. Did you find anything?
by stib
Mon Nov 09, 2015 9:34 pm
Forum: Expression Discussion
Topic: guides - are they scriptable?
Replies: 1
Views: 1384

guides - are they scriptable?

I want to write a script that creates guides at a layer's position in the comp window, but I can't find anything in the AE Scripting guide. Is it possible to do this? Seems like it should be…
by stib
Thu Oct 22, 2015 5:18 am
Forum: Expression Discussion
Topic: Script from Presets
Replies: 1
Views: 1569

Re: Script from Presets

Have a look at the After Effects Scripting Guide for info on how to script after effects, and the Javascript Tools Guide for how to build UI elements.
by stib
Thu Oct 22, 2015 5:14 am
Forum: Expression Discussion
Topic: Make a function/script run onClick, not directly on load?
Replies: 1
Views: 1600

Re: Make a function/script run onClick, not directly on load

you call the main() function right at the bottom, so it gets called when the script loads. I think that might be your problem. Comment out the last line and see how you go.
by stib
Thu Oct 22, 2015 5:08 am
Forum: Expression Discussion
Topic: Scripting the Path to the AE Cache
Replies: 2
Views: 1517

Re: Scripting the Path to the AE Cache

As far as scripting AE goes I think you're out of luck. The After Effects scripting guide mentions cache settings regarding memory usage, but not anything related to the cache file location. Assuming OSX by your path, you could use this shell script to kludge it: cat <path to your current prefs file...
by stib
Thu Oct 22, 2015 4:37 am
Forum: Expression Discussion
Topic: link solid between different composition
Replies: 1
Views: 1445

Re: link solid between different composition

If comp A is sitting in the middle of comp B, you could make the solid S' a child of comp A and then just use the coordinates of solid S, since these coordinates will be relative to the comp-space of the nested comp A. So the expression would be: comp("Comp A").layer("S").transfo...
by stib
Wed Oct 21, 2015 7:47 am
Forum: Expression Discussion
Topic: A 2D lookAt() function
Replies: 0
Views: 1416

A 2D lookAt() function

For 2D, the lookAt() function in After Effects’ expression language doesn’t work as expected. When the looked-at point is below the looking-from point the direction reverses. This has been driving me nuts for years, so to save me having to go back to my high school trigonometry, I've created a f...
by stib
Wed Oct 07, 2015 7:16 pm
Forum: Scripts Discussion
Topic: etTemporalEaseAtKey not working properly
Replies: 0
Views: 1223

etTemporalEaseAtKey not working properly

This code: startSpeed = 10+Math.random()*80; var easeOut = new KeyframeEase(startSpeed, 100); var easeIn = new KeyframeEase(4000,0.1); //create the keyframes and ease them theEllipse.property("Size").setValueAtTime(startTime,[4440,4440]); theEllipse.property("Size").setTemporalEa...
by stib
Wed Oct 07, 2015 7:05 pm
Forum: Announcements
Topic: New version of forum software
Replies: 1
Views: 6097

Re: New version of forum software

Sorry if this is the wrong place to ask… The search function on this forum is a bit wonky. For example I was searching for the script function setTemporalEaseAtKey, and got this error: The following words in your search query were ignored because they are too common words: settemporaleaseatkey. Re...
by stib
Thu Aug 27, 2015 10:34 pm
Forum: Scripts Discussion
Topic: My first AE Script.Plz review and help with calc and notepad
Replies: 1
Views: 1681

Re: My first AE Script.Plz review and help with calc and not

This script can be simplified a bit, in particular in the loop, which will speed it up ⋅ Firstly you don't need to treat 3D and 2D layers differently—2D layers have a Z coordinate, it's just always set to 0. So you can use the 3D code for both. ⋅ you don't need to calculate the...
by stib
Thu Aug 27, 2015 9:18 pm
Forum: Scripts Discussion
Topic: JS Array slice method
Replies: 0
Views: 1342

JS Array slice method

I was going nuts trying to work out why a script wasn't working. I was using the Javascript array object's slice method: selectedLayers = app.project.activeItem.selectedLayers; layerSlice=selectedLayers.slice(a, b); But it was returning undefined. Am I doing something wrong or does array.slice() not...
by stib
Tue Aug 07, 2012 6:34 am
Forum: Scripts Discussion
Topic: AE not showing up in the Object Model Viewer list
Replies: 0
Views: 2436

AE not showing up in the Object Model Viewer list

I've just installed CS 6 and I can't see After Effects in the Object Model Viewer. I can select it as a target application in the source window but it doesn't appear in the Object Model Viewer browser drop-down. I've tried opening the Extendscript Toolkit from within after effects, bit to no avail. ...
by stib
Sun Apr 15, 2012 10:27 pm
Forum: Script Tutorials
Topic: BEGINNER TUTORIAL : Add Slider/Expression to a comp
Replies: 5
Views: 60754

Re: BEGINNER TUTORIAL : Add Slider/Expression to a comp

Thanks for the tutorial, but one thing struck me: you can just apply one slider to a null, and then link the wiggle expression to it, rather than having separate sliders on lots of layers. So your expression would look like: freq=thisComp.layer("Null 1").effect("Slider Control")(...
by stib
Tue May 26, 2009 6:39 pm
Forum: General Scripts Library
Topic: Applescrip AERender dropper app
Replies: 5
Views: 10398

Re: Applescrip AERender dropper app

You can make it use multiple processors with an -mp switch in the command line. I have a similar applescript, it's a bit more interactive, at the expense of being more complicated. Mine will either take a dropped file or if you run it will ask for a file. I also made it shut the computer down after ...
by stib
Sun Jun 15, 2008 8:02 pm
Forum: General Scripts Library
Topic: spell check for after effects
Replies: 5
Views: 10711

Re: spell check for after effects

Fantastic script. For any DLFers or other antipodeans here's an Australian wordlist. You can use the build dictionary script that comes along with the spell checker to make an Australian dictionary. Go sick mate!
en_AU.zip
(159.7 KiB) Downloaded 12076 times