DigitalTimeLane
- class caqtus.types.timelane.DigitalTimeLane(values: Iterable)
Bases:
TimeLane[bool|Expression]A time lane that represents digital values over time.
The values of a digital time lane can be a boolean: True or False, or a placeholder expression. The placeholder expression is used to represent a value that is not known at the time of creation of the time lane and will be evaluated at a later time.
Examples:
from caqtus.session.shot import DigitalTimeLane from caqtus.types.expression import Expression # Creates a digital time lane with known values lane = DigitalTimeLane([True] * 3 + [False, True]) # Creates a digital time lane with a placeholder expression lane = DigitalTimeLane([Expression("x"), False, True])