We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ad48d commit f79425fCopy full SHA for f79425f
src/index.ts
@@ -1,4 +1,8 @@
1
-type keyVal = number | number[];
+import { Layer, Vector } from 'expression-globals-typescript';
2
+
3
+const thisLayer = new Layer();
4
5
+type keyVal = number | Vector;
6
7
interface inputKey {
8
keyTime: number;
@@ -18,7 +22,10 @@ interface eKey extends inputKey {
18
22
19
23
// The function that's called from After Effects
20
24
// as eKeys.animate()
21
-function animate(inputKeyframes: inputKey[], inputTime: number) {
25
+function animate(
26
+ inputKeyframes: inputKey[],
27
+ inputTime: number = thisLayer.time
28
+) {
29
// Validate function inputs
30
checkTypes([
31
['.animate() input keyframes', inputKeyframes, 'array'],
0 commit comments