Javascript expressions

Javascript expressions are a powerfull tool animate properties with code using javascript code.

To enable/diables expressions on a property, click the { } icon

Pikimov expression toggle


Because the syntax is the same as After Effects expressions, you can follow this After Effects beginners tutorials:


Example on rotation property (2D compositions):

time*10

-> rotate 10 degrees for each second

Example on a text property to display a timecode:

f = timeToFrames(time); // total frames since start
fps = 1 / thisComp.frameDuration; // frames per second

m = Math.floor(f / (fps * 60)); // minutes
s = Math.floor((f / fps) % 60); // seconds
fr = Math.floor(f % fps); // frames

(m < 10 ? "0" + m : m) + ":" +
(s < 10 ? "0" + s : s) + ":" +
(fr < 10 ? "0" + fr : fr);

-> display timecode in format HH:MM:SS:FF

Some of After Effect expression special keyworks are avaiable in Pikimov (more will be added)

time
outpoint
frameRate
thisComp.

wiggle()
posterizeTime()
timeToFrames()
random()
linear()
ease()


Because Pikimov uses the After Effects expression syntax, you can ask your favorite AI chatbot (chatGPT...) for help

example, ask Using After Effects expressions, how to fade out in 3 seconds? The answer will be:

fadeDuration = 3; // seconds
t = outPoint - time;
ease(t, 0, fadeDuration, 0, 100);

You can direclty copy paste this as an expression for the opacity property of an item :)