Waypoint
sangfroid.value.Waypoint(time, value, before='clamped', after='clamped')
#
A waypoint is a marker on a layer field's timeline, recording that the attribute should have the given value at the given time. It also gives the interpolation, before and after: that is, the behaviour of the value between this waypoint and those on either side.
Waypoints can be compared with other Waypoints: earlier times
sort before later times.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
typing.Any
|
the value of the attribute at the given time.
Must not be animated: can you imagine a timeline
where there were animations inside the animations?
Enough to give anyone a headache and a |
required |
time
|
sangfroid.t.T
|
when the attribute should reach this value.
On reading, this is always |
required |
after
|
str
|
one of the interpolation behaviours. In string representations of Waypoints, each is represented by an emoji which (somewhat) corresponds to the symbol used by Synfig Studio. They are:
These are the names used in Synfig Studio's UI. You can also use the names that appear in .sif files; they are misleading, so this is probably better avoided. They are:
The other behaviours have the same names in both. Unknown names raise |
'clamped'
|
before
|
str
|
see |
'clamped'
|
Raises:
| Type | Description |
|---|---|
TypeError
|
if |
Attributes:
| Name | Type | Description |
|---|---|---|
tag |
bs4.Tag
|
the tag which would represent this Waypoint in a .sif file. |
Source code in sangfroid/value/value.py
620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 | |