MotionClip class
A run through a placement's clip, as one block on the timeline: from
at for length, the clip's own time advancing at speed from
offset — backwards when reverse. It stands on a number track (a
placement's animationTime) and lowers to a straight ramp: the value at
a moment is where the clip's time has got to. Past the block's end the
value holds, like a track past its last key; how a time past the clip's
own end reads is the placement's loop row, which wraps it.
Which clip runs is clip — a name in the placement's asset — or, when
that is empty, whatever the placement's animation row names. Two
blocks on one track may overlap, and over the overlap the earlier fades
into the later: the runtime hands the placement both clips, both times
and a blend that runs 0 to 1 across the overlap.
Constructors
Properties
- at ↔ Duration
-
Where the block starts, within its group.
getter/setter pair
- clip ↔ String
-
The clip's name in the asset, or empty for the placement's own row.
getter/setter pair
- end → Duration
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Runtime identity, for the same reason a MotionKey has one: the
timeline holds a selected block while a drag re-sorts the list and
across an undo. Nothing on disk carries it.
final
- length ↔ Duration
-
How long it runs on the timeline.
getter/setter pair
- offset ↔ Duration
-
Where in the clip the run starts.
getter/setter pair
- reverse ↔ bool
-
Whether the clip's time runs down instead of up.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed ↔ double
-
Clip seconds per timeline second.
getter/setter pair
Methods
-
copy(
) → MotionClip -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
timeAt(
Duration t) → double -
The clip's own time at timeline moment
t, in seconds — held at the block's ends. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited