Uploaded March 2023 | Updated September 2026, 4 days ago
How to find the value of a variable quickly and easily.
When writing complex code, (such as Javascript expression in Adobe After Effects), it is often helpful to be able to see what a variable's value is. If you were using javascript in an HTML web page, you could send these values to the browser's Developer Console, using the simple code console.log(). Unfortunately, After Effects does not have the equivalent of a developer console. It does have the info panel, but you can only interact with that when writing a script. For a regular expression (or even an irregular one), I used to use a text layer and edit the sourceText to show the variable. But this was time consuming and not always easy - and quite often, it was confusing.
Instead, a much simpler approach is to throw an error. Using just the code below, the expression halts, After Effects highlights the issue and you can see the value of whatever you ask.
--------------------------------------------------------------------------------------
throw new Error( VARIABLE )
or even simpler, just:
throw VARIABLE
--------------------------------------------------------------------------------------
#AfterEffects #Expressions #tutorial
*Get ShiveringCactus VFX as phone cases, T-shirts, mugs: redbubble.com/people/ShiveringCactus/shop*
*Or buy me a coffee: ko-fi.com/shiveringcactus*
In the video, I mention that Dan Ebberts ( motionscript.com ) helped me adapt one of his expressions, you can download the preset from this list:
dropbox.com/s/26sadwh8aig3s6k/Circle%20highlight.zip?dl=1
To learn how to install presets (FFX files) check out this video: youtu.be/gMDSVJlFv5E
I'm an Adobe Community Expert - which means you can find me on the Adobe forums if you need any help. community.adobe.com/t5/after-effects/ct-p/ct-after-effects?page=1&sort=latest_replies&lang=all&tabid=all
#AdobeCommunityExperts
How to find the value of a variable quickly and easily.
When writing complex code, (such as Javascript expression in Adobe After Effects), it is often helpful to be able to see what a variable's value is. If you were using javascript in an HTML web page, you could send these values to the browser's Developer Console, using the simple code console.log(). Unfortunately, After Effects does not have the equivalent of a developer console. It does have the info panel, but you can only interact with that when writing a script. For a regular expression (or even an irregular one), I used to use a text layer and edit the sourceText to show the variable. But this was time consuming and not always easy - and quite often, it was confusing.
Instead, a much simpler approach is to throw an error. Using just the code below, the expression halts, After Effects highlights the issue and you can see the value of whatever you ask.
--------------------------------------------------------------------------------------
throw new Error( VARIABLE )
or even simpler, just:
throw VARIABLE
--------------------------------------------------------------------------------------
#AfterEffects #Expressions #tutorial
*Get ShiveringCactus VFX as phone cases, T-shirts, mugs: redbubble.com/people/ShiveringCactus/shop*
*Or buy me a coffee: ko-fi.com/shiveringcactus*
In the video, I mention that Dan Ebberts ( motionscript.com ) helped me adapt one of his expressions, you can download the preset from this list:
dropbox.com/s/26sadwh8aig3s6k/Circle%20highlight.zip?dl=1
To learn how to install presets (FFX files) check out this video: youtu.be/gMDSVJlFv5E
I'm an Adobe Community Expert - which means you can find me on the Adobe forums if you need any help. community.adobe.com/t5/after-effects/ct-p/ct-after-effects?page=1&sort=latest_replies&lang=all&tabid=all
#AdobeCommunityExperts




![How to get Uniform Scale Wiggle in After Effects
An Expressions tutorial.
The wiggle expression is a great way to introduce randomness to your image, solid or shape in After Effects, but when applied to scale it wobbles both dimensions separately. What happens if you want to wiggle them both together?
Dont worry, its a simple solution and just requires a little bit of understanding about how the Wiggle Expression works.
#AfterEffects #expressions #tutorial @AdobeVideo
*Get ShiveringCactus VFX as phone cases, T-shirts, mugs: https://www.redbubble.com/people/ShiveringCactus/shop*
*Or buy me a coffee: https://ko-fi.com/shiveringcactus*
Big thanks to Brie from @creativecow for suggesting this tutorial!
*Tutorial - Keyframing a wiggle:*
https://youtu.be/SqVZcGEZVp4
*Expressions:*
Regular wiggle:
wiggle(5,50)
Uniform scale wiggle:
var w = wiggle(5,50);
[w[0],w[0]]
Im an Adobe Community Expert - which means you can find me on the Adobe forums if you need any help. https://community.adobe.com/t5/after-effects/ct-p/ct-after-effects?page=1&sort=latest_replies&lang=all&tabid=all
#AdobeCommunityExperts How to get Uniform Scale Wiggle in After Effects](https://i.ytimg.com/vi/ZtOyBaw3Jy8/mqdefault.jpg)


![Recreating the Genesis Effect from Star Trek II: the Wrath of Khan
An Adobe After Effects tutorial
KHAAAAAAAAAN!
In this video, I look at how to recreate the iconic Genesis Effect as simulated by some of the very first CGI in movies. Star Trek II : The Wrath of Khan (1982) used a Cray supercomputer to render the minute long sequence. The shot was reused in both Star Trek III : The Search for Spock and Star Trek IV : The Voyage Home, so you know it must have been good. In the sequence, a torpedo is fired into dead moon, which is quickly covered in fiery particles. Then the surface glow fades to see greenery and water appear on the surface before pulling back to reveal an M-class world with clouds.
It’s an awesome sequence and the hardest part turned out to be the camera move, which I had to give up on, still I think I capture the feeling of it. The tutorial only uses the included effects and one plug-in, the free Orb effect from @VideoCopilot. It’s a long tutorial and I have focussed more on the techniques involved rather than trying to match everything exactly.
#aftereffects #tutorial #statrek
Project download: https://www.dropbox.com/s/zat5aghc24wrlxx/Genesis.zip?dl=1
Links mentioned:
Video Copilot Orb: https://www.videocopilot.net/orb/
Mercury: https://solarsystem.nasa.gov/resources/531/enhanced-color-mercury-map/
Normal Map online: http://cpetry.github.io/NormalMap-Online/
Expressions:
Position X:
x=thisComp.layer(Planet NULL).transform.position[0]-thisComp.width/2;
x/thisComp.width;
Position Y:
y=thisComp.layer(Planet NULL).transform.position[1]-thisComp.height/2;
y/thisComp.width;
Position Z:
z=thisComp.layer(Planet NULL).transform.position[2];
z/thisComp.width;
Chapters
0:00 What were making
1:01 Explainer
2:05 Creating a planet
3:54 Pointing the sun
4:34 Trying to be clever
6:54 Easy fire
10:29 Genesis Particle Wave
16:55 Life from lifelessness
20:01 Andrew Kramers atmosphere recipe
Get ShiveringCactus VFX as phone cases, T-shirts, mugs:
https://shiveringcactus.redbubble.com/
Or buy me a coffee: https://ko-fi.com/shiveringcactus
Im an Adobe Community Expert - which means you can find me on the Adobe forums if you need any help. https://community.adobe.com/t5/after-effects/ct-p/ct-after-effects?page=1&sort=latest_replies&lang=all&tabid=all
#AdobeCommunityExperts Recreating the Genesis Effect from Star Trek II: the Wrath of Khan](https://i.ytimg.com/vi/aDPpRVIPknM/mqdefault.jpg)


