Search found 19 matches

by stib
September 11th, 2019, 1:01 am
Forum: Expression Discussion
Topic: Has anyone found a practical use for the $.global object?
Replies: 4
Views: 2262

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

Yes there is. You can use it to create global master functions that means you can write one expression and have it control multiple properties and multiple layers, without them simply copying the value. This is incredibly useful for procedural animation where you have scads of layers and you want th...
by stib
April 4th, 2019, 4:16 pm
Forum: Scripts Discussion
Topic: app.settings.getSetting not working
Replies: 1
Views: 1371

Re: app.settings.getSetting not working

If I try saving a setting like "my test settings" I notice in the prefs.txt file that the setting gets called ["settings_my test settings"] . And when I retrieve it I only specify the name as app.settings.getSetting("my test settings") Does this mean that the reason AE can't find the settings I'm lo...
by stib
April 3rd, 2019, 8:00 pm
Forum: Scripts Discussion
Topic: app.settings.getSetting not working
Replies: 1
Views: 1371

app.settings.getSetting not working

I'm trying to retrieve the label colours from the user's prefs. What I'm using is: var label1 = app.settings.getSetting("Label Preference Color Section 5", "Label Color ID 2 # 1", PREFType.PREF_Type_MACHINE_INDEPENDENT) the section name and key for the preferences are copy-pasted out of the "Adobe A...
by stib
November 10th, 2015, 5:13 am
Forum: Scripts Discussion
Topic: toWorld scripting equivalent
Replies: 2
Views: 4089

Re: toWorld scripting equivalent

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

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
October 22nd, 2015, 5:18 am
Forum: Expression Discussion
Topic: Script from Presets
Replies: 1
Views: 4952

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
October 22nd, 2015, 5:14 am
Forum: Expression Discussion
Topic: Make a function/script run onClick, not directly on load?
Replies: 1
Views: 5239

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
October 22nd, 2015, 5:08 am
Forum: Expression Discussion
Topic: Scripting the Path to the AE Cache
Replies: 2
Views: 5307

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
October 22nd, 2015, 4:37 am
Forum: Expression Discussion
Topic: link solid between different composition
Replies: 1
Views: 4286

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").transform.position If you t...
by stib
October 21st, 2015, 7:47 am
Forum: Expression Discussion
Topic: A 2D lookAt() function
Replies: 0
Views: 4957

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
October 7th, 2015, 7:16 pm
Forum: Scripts Discussion
Topic: etTemporalEaseAtKey not working properly
Replies: 0
Views: 2865

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").setTemporalEaseAtKey(1, [easeIn, ...
by stib
October 7th, 2015, 7:05 pm
Forum: Announcements
Topic: New version of forum software
Replies: 1
Views: 10202

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
August 27th, 2015, 10:34 pm
Forum: Scripts Discussion
Topic: My first AE Script.Plz review and help with calc and notepad
Replies: 1
Views: 3205

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 average with each layer...
by stib
August 27th, 2015, 9:18 pm
Forum: Scripts Discussion
Topic: JS Array slice method
Replies: 0
Views: 3183

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...