You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sequence/TODO.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,16 +65,16 @@ Either approach (or both) makes the system safe for virtual attributes without r
65
65
66
66
---
67
67
68
-
## Planned: `t` Variable in Expressions (Orbit / Cycle Animations)
68
+
## Done: `t` Variable in Expressions (Orbit / Cycle Animations)
69
69
70
-
Add a normalized time variable `t` (0–1, representing elapsed fraction of the current loop cycle) to the expression scope so users can write orbit-style animations:
70
+
Normalized time variable `t` (0–1, representing elapsed fraction of the current playback cycle) is available in value expressions:
71
71
72
72
```
73
-
left: =orig_left + cos(t * 2 * PI) * distance
74
-
top: =orig_top + sin(t * 2 * PI) * distance
73
+
left: =orig + cos(t * 2 * PI) * 140
74
+
top: =orig + sin(t * 2 * PI) * 140
75
75
```
76
76
77
-
Needed for `!sequence generate orbit` and MovementAnimations parity. TBD whether this lives in Sequence's expression scope or in Choreograph.
77
+
`t` is 0 at the first frame, 1 at the last frame, and resets each loop cycle.
0 commit comments