top of page
Search

Using AeXpression NotePad to create a realistic EKG Monitor in under 1 minute.

  • Writer: Roland Kahlenberg
    Roland Kahlenberg
  • Mar 16
  • 2 min read

Updated: Mar 17

AeXpression NotePad UI - send by a Beta Tester in South Korea.
AeXpression NotePad UI - send by a Beta Tester in South Korea.

AeXpression NotePad is in the last round of testing before its official launch. AeXpression NotePad is an After Effects Expression Management and Deployment Tool that allows you to deploy Expressions Code and Expression Controls in a single click. You can have up to 500, or more, of your favorite Expressions all loaded into the script's UI; ready for use and deployed with a few clicks. /* Author: Inspired by ECG Waveforms

Website: https://en.wikipedia.org/wiki/Electrocardiography

*/


speed = 200;

amp = 100;

freq = 1;


t = time * freq;

phase = t % 1; // Loops from 0 to 1 per heartbeat

x = time * speed;


if (phase < 0.1) {

y = amp * 0.2 * Math.sin(2 * Math.PI * phase / 0.1); // P wave (small bump)

} else if (phase < 0.3) {

qrs = (phase - 0.1) / 0.2;

y = amp * (1.5 * Math.sin(2 * Math.PI * qrs) - 0.5 * Math.abs(Math.sin(6 * Math.PI * qrs))); // QRS spike

} else if (phase < 0.5) {

y = amp * 0.3 * Math.sin(2 * Math.PI * (phase - 0.3) / 0.2); // T wave (recovery bump)

} else {

y = 0; // Baseline

}


[x, y + thisComp.height/2]



/*

// INSTRUCTIONS:

Animates a point along a 2D path resembling an ECG heartbeat signal.

Apply to Position property of a 2D shape layer (e.g., small circle)

speed: Horizontal movement speed in pixels/second. Increase for faster travel.

amp: Height of the heartbeat peaks in pixels. Higher = taller spikes.

freq: Heartbeats per second (pulse rate). 1 = 60 BPM; adjust for rhythm.

phase: Controls the timing within each heartbeat cycle (0 to 1).

// For a more erratic heartbeat, tweak freq over time with a slider control.

*/




1 - Apply the Expression directly onto a Null Layer's Transform.Position Property. 2 - Create a Solid and apply the Write-On Effect. 3 - Create an Expression Link from the Brush Position of the Write-On effect to the Null Layer's Transform.Position Property. You should now see the Brush Position animating. Let's tweak the Write-On's parameters to make it look more distinct.


4 - You can add a small rectangle to act as the "head" of the animated EKG Monitor. In the video, I used a Shape Layer which had its Transform.Position Expression Linked to the Null Layer's Transform Property. Look out for AeXpression NotePad. There will be a good discount for the launch. It's going to change the way you work. I'll be holding LIVE Demos where I will show tips and tricks including other Advanced Expressions and how to leverage ChatGPT, Claude and Grok3. I'll also take questions from users. And if there is interest, I'll help set up a depository where users can share their AeXpressions. AeXpressions NotePad extends the language abilities of regular After Effects Expressions. These additional commands allow you to deploy Expressions together with referenced Match Name Expression Controls. Match Name Expression Controls work on all Language Versions of After Effects. So, they're a great way to share - give a little, take a lot. It's a win-win for all.


 
 
 

Kommentare


bottom of page