Skip to content
Gerardo Schiavone
Nuke

Clock Expressions

A procedural clock with ticking, friction and vibration.

Fully procedural and customizable nuke clock with a combination of different expressions to manage the hand vibrations after each second.

I think this expressions could be useful to reproduce the pendulum physic of any analogic mechanisms.

Click Expression:

One clic each second, normalized to have 60 clicks to make 360 degree

Curve Editor: stepped rotate curve of the click expression

(1-(int(((frame+10)/fps))*6)-6)

Fricion Expresion:

A simple triangular curve to emulate the lost of power in time given by friction

Curve Editor: repeating triangular curve of the friction expression

1-((frame+10) % (fps/2)/(fps/2))*(2)+1

Vibration Expression (Low frequency), interpolated with friction expression above:

Curve Editor: stepped curve with vibrations, plus friction and alternator curves

((sin(0.8*pi*(fps+10)/((friction.rotate.z*5))+1))*(friction.rotate.z*1))+(1-(int(((frame+10)/fps))*6)-6)

The final step “Alternator switch node” is a simple square curve that cut the double frequency of the “friction expression”:

Curve Editor: alternator square wave marked 1 and 0 cutting vibrations

for 25fps: ((frame-15) % (fps)/(fps/2)) *(20/5) – (20/5) >= 0 ? 1 : 0

for 24fps : floor(cos((frame+2.8)/3.8)+1)

Nukepedia download (opens in a new tab)

More tools

All tools · Need a custom tool or pipeline? Get in touch.