@dnyantra/dtly 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +26 -0
- package/README.md +172 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +95 -0
- package/dist/cli.js.map +1 -0
- package/dist/core/anim.d.ts +3 -0
- package/dist/core/anim.js +61 -0
- package/dist/core/anim.js.map +1 -0
- package/dist/core/color.d.ts +4 -0
- package/dist/core/color.js +28 -0
- package/dist/core/color.js.map +1 -0
- package/dist/core/ease.d.ts +8 -0
- package/dist/core/ease.js +90 -0
- package/dist/core/ease.js.map +1 -0
- package/dist/core/model.d.ts +229 -0
- package/dist/core/model.js +4 -0
- package/dist/core/model.js.map +1 -0
- package/dist/core/text.d.ts +41 -0
- package/dist/core/text.js +222 -0
- package/dist/core/text.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/server.d.ts +3 -0
- package/dist/mcp/server.js +193 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/node.d.ts +4 -0
- package/dist/node.js +6 -0
- package/dist/node.js.map +1 -0
- package/dist/ops/ops.d.ts +39 -0
- package/dist/ops/ops.js +259 -0
- package/dist/ops/ops.js.map +1 -0
- package/dist/ops/store.d.ts +4 -0
- package/dist/ops/store.js +22 -0
- package/dist/ops/store.js.map +1 -0
- package/dist/presets/index.d.ts +14 -0
- package/dist/presets/index.js +235 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/text.d.ts +5 -0
- package/dist/presets/text.js +19 -0
- package/dist/presets/text.js.map +1 -0
- package/dist/render/export.d.ts +43 -0
- package/dist/render/export.js +215 -0
- package/dist/render/export.js.map +1 -0
- package/dist/render/ffmpeg.d.ts +1 -0
- package/dist/render/ffmpeg.js +16 -0
- package/dist/render/ffmpeg.js.map +1 -0
- package/dist/render/node-host.d.ts +18 -0
- package/dist/render/node-host.js +168 -0
- package/dist/render/node-host.js.map +1 -0
- package/dist/render/renderer.d.ts +36 -0
- package/dist/render/renderer.js +372 -0
- package/dist/render/renderer.js.map +1 -0
- package/dist/starter.d.ts +5 -0
- package/dist/starter.js +32 -0
- package/dist/starter.js.map +1 -0
- package/dist/studio/server.d.ts +12 -0
- package/dist/studio/server.js +190 -0
- package/dist/studio/server.js.map +1 -0
- package/dist/studio-app/app.css +2 -0
- package/dist/studio-app/app.css.map +7 -0
- package/dist/studio-app/app.js +5 -0
- package/dist/studio-app/app.js.map +7 -0
- package/dist/studio-app/index.html +15 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/fonts/Baloo2.ttf +0 -0
- package/fonts/Mukta-Bold.ttf +0 -0
- package/fonts/OFL-Baloo2.txt +93 -0
- package/fonts/OFL-Mukta.txt +93 -0
- package/package.json +84 -4
- package/plugin/skills/dtly/SKILL.md +94 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>DT.ly Studio</title>
|
|
7
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 32%22%3E%3Crect width=%2232%22 height=%2232%22 rx=%227%22 fill=%22%23e8692a%22/%3E%3Cpath d=%22M11 9l13 7-13 7z%22 fill=%22white%22/%3E%3C/svg%3E" />
|
|
8
|
+
<link rel="stylesheet" href="/app/app.css" />
|
|
9
|
+
<script>window.DTLY = __DTLY_CONFIG__;</script>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
<script type="module" src="/app/app.js"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAC/B,MAAM,CAAC,MAAM,KAAK,GAAG,4CAA4C,CAAC"}
|
package/fonts/Baloo2.ttf
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2019 The Baloo 2 Project Authors (https://github.com/EkType/Baloo2)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright (c) 2014, Girish Dalvi, Ek Type. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,86 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnyantra/dtly",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "DT.ly — After Effects-style motion graphics as JSON, rendered to MP4, with an MCP server for AI agents. From the creator of CustomerPro.in.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"motion-graphics",
|
|
7
|
+
"video",
|
|
8
|
+
"after-effects",
|
|
9
|
+
"kinetic-typography",
|
|
10
|
+
"animation",
|
|
11
|
+
"mcp",
|
|
12
|
+
"ffmpeg",
|
|
13
|
+
"canvas",
|
|
14
|
+
"devanagari",
|
|
15
|
+
"claude"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/dnyantra/dtly#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/dnyantra/dtly/issues"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/dnyantra/dtly.git"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "From the creator of CustomerPro.in",
|
|
28
|
+
"url": "https://customerpro.in"
|
|
29
|
+
},
|
|
30
|
+
"type": "module",
|
|
31
|
+
"bin": {
|
|
32
|
+
"dtly": "dist/cli.js"
|
|
33
|
+
},
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./node": {
|
|
40
|
+
"types": "./dist/node.d.ts",
|
|
41
|
+
"default": "./dist/node.js"
|
|
42
|
+
},
|
|
43
|
+
"./mcp": {
|
|
44
|
+
"types": "./dist/mcp/index.d.ts",
|
|
45
|
+
"default": "./dist/mcp/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
"types": "./dist/index.d.ts",
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"fonts",
|
|
53
|
+
"plugin/skills",
|
|
54
|
+
"README.md",
|
|
55
|
+
"LICENSE"
|
|
56
|
+
],
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=20"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && chmod +x dist/cli.js && node scripts/build-studio.mjs",
|
|
62
|
+
"prepare": "npm run build",
|
|
63
|
+
"typecheck": "tsc -p . && tsc -p tsconfig.app.json",
|
|
64
|
+
"dev": "tsx src/cli.ts",
|
|
65
|
+
"mcp": "tsx src/cli.ts mcp",
|
|
66
|
+
"test": "npm run typecheck && tsx test/smoke.ts",
|
|
67
|
+
"prepublishOnly": "npm test && npm run build",
|
|
68
|
+
"test:studio": "tsx test/studio.e2e.ts"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
72
|
+
"skia-canvas": "^4.0.0",
|
|
73
|
+
"zod": "^4.6.7"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@types/node": "^26.6.5",
|
|
77
|
+
"esbuild": "^0.28.2",
|
|
78
|
+
"preact": "^11.0.2",
|
|
79
|
+
"puppeteer-core": "^24.43.1",
|
|
80
|
+
"tsx": "^4.23.15",
|
|
81
|
+
"typescript": "^7.0.2"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dtly
|
|
3
|
+
description: Make motion graphics and videos with DT.ly — After Effects-style compositions, layers, keyframes, text animators, kinetic typography, openers, slideshows and transitions — through the dtly MCP tools. Use when asked to create or edit a promo, ad, reel, opener, title sequence, lyric/kinetic text video, slideshow or lower third, or to change timing, easing or animation of an existing DT.ly project.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# DT.ly motion design
|
|
7
|
+
|
|
8
|
+
DT.ly is a layer-and-keyframe motion engine, modelled on After Effects. A project is a JSON
|
|
9
|
+
file; you edit it only through the `dtly` MCP tools, then look at rendered frames to check it.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. **Plan the beats first.** Write a shot list with times before touching tools: what is on
|
|
14
|
+
screen, for how long, and what moves. Reading time ≈ 0.4 s per word + 0.5 s, minimum 0.8 s.
|
|
15
|
+
2. `project_create` (default 1080x1920, 30 fps). Scenes that are edited as a unit → `comp_add`
|
|
16
|
+
and drop them in as `precomp` layers.
|
|
17
|
+
3. Build bottom-up: background (video/image/solid) → graphics → text → audio.
|
|
18
|
+
`layer_add` uses index 0 = top, so add the background with a high `index` or first.
|
|
19
|
+
4. Reach for presets (`preset_list`) for anything standard, then refine with
|
|
20
|
+
`keyframe_set` / `keyframe_ease` / `layer_update`.
|
|
21
|
+
5. **Always look.** `render_sheet` across the key moments (entrances mid-way, holds, exits),
|
|
22
|
+
fix, look again. `render_frame` at scale 0.4 for detail. `project_validate` before export.
|
|
23
|
+
6. `render_video` only when the sheet looks right.
|
|
24
|
+
|
|
25
|
+
**Working with a human:** call `studio_open` early so they can watch the project in DT.ly Studio
|
|
26
|
+
(browser preview + timeline). Your edits appear there live, and they can drag keyframes, trim layers
|
|
27
|
+
or retype text themselves — those edits save to the same file, so call `project_describe` again
|
|
28
|
+
before your next change whenever they say they adjusted something.
|
|
29
|
+
|
|
30
|
+
## The model (AE vocabulary)
|
|
31
|
+
|
|
32
|
+
| After Effects | DT.ly |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Composition / precomp | `comps[]`, layer `type: "precomp"` |
|
|
35
|
+
| Layer in/out point | `inPoint` / `outPoint` (comp seconds) |
|
|
36
|
+
| Transform | `transform.anchor/position/scale(%)/rotation(°)/opacity(%)/skew` |
|
|
37
|
+
| Stopwatch keyframes | any property as `{keyframes:[{t,v,ease}]}`; `ease` shapes the segment *leaving* that key |
|
|
38
|
+
| Easy Ease / graph editor | `easyEase`, `easeIn`, `easeOut`, `cubicOut`, `expoIn/Out/InOut`, `backOut`, bezier `[x1,y1,x2,y2]`, `{spring:{stiffness,damping}}`, `hold` |
|
|
39
|
+
| wiggle() | `{keyframes:[…], wiggle:{freq, amp, seed}}` |
|
|
40
|
+
| Parenting / null | `parent: layerId`, `type: "null"` (transform only, not opacity) |
|
|
41
|
+
| Masks | `masks: [{shape: rect|ellipse|path, rect:[x,y,w,h] (animatable), inverted}]` in layer space |
|
|
42
|
+
| Track matte | `matte: {layer, mode: alpha|alphaInverted}`; the matte layer is not drawn on its own |
|
|
43
|
+
| Trim Paths | shape `trim: {start, end}` in % — draw-on lines, rings, underlines |
|
|
44
|
+
| Text Animator + range selector | `animators: [{unit: grapheme|word|line, stagger, duration, delay, order, ease, from:{opacity,x,y,scale,rotation,blur,tracking,color}, clip, mode:"out"}]` |
|
|
45
|
+
| Effects | `effects: blur, dropShadow, glow, fill, brightness, saturate, contrast` |
|
|
46
|
+
| Motion blur switch | `motionBlur: {samples, shutter}` |
|
|
47
|
+
| Blending modes | `blendMode: multiply|screen|overlay|add|…` |
|
|
48
|
+
|
|
49
|
+
Layer-space origins: solids/images/videos/precomps use their top-left with the anchor at the
|
|
50
|
+
centre by default; shapes are centred on the origin; text is anchored at its alignment point,
|
|
51
|
+
vertically centred on the block. Position defaults to comp centre.
|
|
52
|
+
|
|
53
|
+
## Motion design rules of thumb
|
|
54
|
+
|
|
55
|
+
- **Ease everything.** Entrances: `cubicOut`/`expoOut` (fast in, gentle settle). Exits: `easeIn`/`expoIn`.
|
|
56
|
+
Moves between two rests: `easyEase` or `expoInOut`. Linear only for constant drift (Ken Burns, rotation loops).
|
|
57
|
+
- **Timing.** UI-style moves 0.3–0.6 s; titles 0.6–1.2 s; nothing important shorter than 0.25 s.
|
|
58
|
+
Stagger: graphemes 0.02–0.05 s, words 0.06–0.15 s, lines 0.1–0.2 s.
|
|
59
|
+
- **Overshoot sparingly** (`backOut`, springs): one bouncy element per beat, the rest calm.
|
|
60
|
+
- **Overlap actions.** Start the next element before the previous one settles (≈ 30–50 % overlap); it reads as one gesture.
|
|
61
|
+
- **Hierarchy.** One hero element per moment. Size contrast ≥ 1.6× between title and support text.
|
|
62
|
+
- **Legibility.** Text on footage needs a plate (`box`), a `dropShadow`, or a darkened background
|
|
63
|
+
(`brightness` 40–60 %). Keep text inside the safe area: for 9:16 keep important content
|
|
64
|
+
between y ≈ 250 and y ≈ 1600 and x 60–1020 (UI covers the edges on Reels/Shorts).
|
|
65
|
+
- **Hold.** Let finished text sit still long enough to read before the next thing moves.
|
|
66
|
+
- **Kinetic typography.** Vary scale and colour for emphasis words; alternate entrance directions;
|
|
67
|
+
cut on the beat of the music (markers help: `comp_update` with `markers`).
|
|
68
|
+
|
|
69
|
+
## Indian scripts (Devanagari, etc.)
|
|
70
|
+
|
|
71
|
+
- Shaping is correct at any unit; per-grapheme animation keeps conjuncts (क्ष, श्र, र्ह) intact.
|
|
72
|
+
- Prefer `word` units for Marathi/Hindi body text — readers parse whole words; keep `grapheme`
|
|
73
|
+
effects for short display words.
|
|
74
|
+
- Avoid large `tracking` on Devanagari: it breaks the visual headline (शिरोरेखा) between letters.
|
|
75
|
+
- Bundled fonts: `Baloo 2` (display, default) and `Mukta` (text). Register others in `project.fonts`.
|
|
76
|
+
|
|
77
|
+
## Presets
|
|
78
|
+
|
|
79
|
+
`preset_list` is the source of truth. Highlights:
|
|
80
|
+
- `text.*` — fadeUp, popIn, slam, blurIn, maskedLines, cascade, trackingIn, centerOut, typewriter, colorSweep, exits (`fadeOutDown`, `blurOut`, `maskedLinesOut`).
|
|
81
|
+
- `kinetic.sequence` — phrase-by-phrase kinetic typography with emphasis words.
|
|
82
|
+
- `opener.logoReveal`, `opener.bars` — brand openers.
|
|
83
|
+
- `slides.slideshow` — sliders from images/clips with Ken Burns, captions and transitions.
|
|
84
|
+
- `transition.between` — push, crossfade, zoom, wipe, whip (motion-blurred), slideUp between two overlapping layers.
|
|
85
|
+
- `element.lowerThird`, `element.highlightWord`.
|
|
86
|
+
|
|
87
|
+
Presets only write ordinary layers and keyframes, so everything they make stays editable.
|
|
88
|
+
|
|
89
|
+
## Checks before you call it done
|
|
90
|
+
|
|
91
|
+
- `project_validate` returns no problems.
|
|
92
|
+
- A `render_sheet` across the whole timeline shows nothing clipped, overlapping or unreadable,
|
|
93
|
+
and every entrance has finished before the viewer needs to read it.
|
|
94
|
+
- Audio: music under voice ≈ 0.15–0.25 volume; fade the end (`fadeOut`) so it doesn't cut.
|