inrange - Check if a Frame is Within a Certain Range

Written by Frank Rueter on .

Checking whether a certain frame or number is within a given range is often needed, and often resulting expressions are unnecessarily complex. Here is a simple solution:

This will get you the script's current frame:



 this will return true if the current frame is between 1 and 10 (inclusive):
inrange( frame, 1, 10 )


The latter is handy in nodes' disable knob to switch them on and off depending on a frame range:
Node is disabled at frame 3:

and enabled after frame 10:


You have no rights to post comments

We have 3306 guests and 74 members online