Search found 21 matches
- July 20th, 2020, 10:37 pm
- Forum: Expressions Library
- Topic: Creating a falling leaf effect
- Replies: 3
- Views: 117114
Re: Creating a falling leaf effect
You have to work out when the animation should end. The time it takes for the layer to hit the ground is the distance traveled / velocity, so you can use (start position - end position) / velocity. Position let yVelocity = 200; //pixels per second let oscFreq = 1.5; //oscillations per second let osc...
- May 16th, 2020, 5:06 am
- Forum: General Scripts Library
- Topic: Multi-Copy-Paste script - keyframes from multiple layers
- Replies: 13
- Views: 63481
Re: Multi-Copy-Paste script - keyframes from multiple layers
I wrote a script that does a similar thing. It's all open-source, you can find it here: https://github.com/stibinator/stibsAEScripts/blob/master/ScriptUI%20Panels/copy_multi.jsx Note that it depends on some library functions to work. If you want to use it you'll need them, which is best done by down...
- September 11th, 2019, 1:12 am
- Forum: Expression Discussion
- Topic: How to integrate previous rotation values.
- Replies: 1
- Views: 17805
Re: How to integrate previous rotation values.
use
Code: Select all
wiggle
- September 11th, 2019, 1:01 am
- Forum: Expression Discussion
- Topic: Has anyone found a practical use for the $.global object?
- Replies: 5
- Views: 23232
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...
- April 4th, 2019, 4:16 pm
- Forum: Scripts Discussion
- Topic: app.settings.getSetting not working
- Replies: 1
- Views: 9816
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 ...
- April 3rd, 2019, 8:00 pm
- Forum: Scripts Discussion
- Topic: app.settings.getSetting not working
- Replies: 1
- Views: 9816
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...
- November 10th, 2015, 5:13 am
- Forum: Scripts Discussion
- Topic: toWorld scripting equivalent
- Replies: 2
- Views: 9828
Re: toWorld scripting equivalent
I was looking for exactly the same thing. Did you find anything?
- November 9th, 2015, 9:34 pm
- Forum: Expression Discussion
- Topic: guides - are they scriptable?
- Replies: 1
- Views: 11254
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…
- October 22nd, 2015, 5:18 am
- Forum: Expression Discussion
- Topic: Script from Presets
- Replies: 1
- Views: 10428
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.
- October 22nd, 2015, 5:14 am
- Forum: Expression Discussion
- Topic: Make a function/script run onClick, not directly on load?
- Replies: 1
- Views: 11462
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.
- October 22nd, 2015, 5:08 am
- Forum: Expression Discussion
- Topic: Scripting the Path to the AE Cache
- Replies: 2
- Views: 12047
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...
- October 22nd, 2015, 4:37 am
- Forum: Expression Discussion
- Topic: link solid between different composition
- Replies: 1
- Views: 9669
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...
- October 21st, 2015, 7:47 am
- Forum: Expression Discussion
- Topic: A 2D lookAt() function
- Replies: 0
- Views: 12449
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...
- October 7th, 2015, 7:16 pm
- Forum: Scripts Discussion
- Topic: etTemporalEaseAtKey not working properly
- Replies: 0
- Views: 7988
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...
- October 7th, 2015, 7:05 pm
- Forum: Announcements
- Topic: New version of forum software
- Replies: 1
- Views: 25047
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...