Skip to content

Time Expressions

Get value at time

Get the value of a parameter at a specific time using the

Syntax

tool.InputName:GetValueAtTime(time, comp:GetAttrs().COMPN_GlobalStart)
  1. Time Unit: The time parameter is usually in frames, but it depends on the composition settings.
  2. Global Time: Use comp:GetAttrs().COMPN_GlobalStart to account for compositions that don't start at frame 0 or 1.
  3. Supported Inputs: Not all inputs support GetValueAtTime(). Ensure the input is animatable.