aicommunicator 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 +55 -0
- package/README.md +93 -2
- package/bin/aic.js +20427 -0
- package/host-ui/host.js +5151 -0
- package/host-ui/index.html +483 -0
- package/host-ui/lang-en.js +631 -0
- package/package.json +30 -4
- package/plugin-guide.md +997 -0
- package/plugins/plugin-animation/LICENSE +55 -0
- package/plugins/plugin-animation/dist/logic.js +2225 -0
- package/plugins/plugin-animation/docs/manual.md +217 -0
- package/plugins/plugin-animation/manifest.json +31 -0
- package/plugins/plugin-animation/ui/icon.svg +6 -0
- package/plugins/plugin-animation/ui/index.html +2266 -0
- package/plugins/plugin-html-design/LICENSE +55 -0
- package/plugins/plugin-html-design/dist/logic.js +972 -0
- package/plugins/plugin-html-design/docs/manual.md +100 -0
- package/plugins/plugin-html-design/manifest.json +39 -0
- package/plugins/plugin-html-design/samples/exhibition-page.json +570 -0
- package/plugins/plugin-html-design/ui/icon.svg +5 -0
- package/plugins/plugin-html-design/ui/index.html +1241 -0
- package/plugins/plugin-html-slides/LICENSE +55 -0
- package/plugins/plugin-html-slides/dist/logic.js +1323 -0
- package/plugins/plugin-html-slides/docs/manual.md +121 -0
- package/plugins/plugin-html-slides/manifest.json +39 -0
- package/plugins/plugin-html-slides/samples/first-week-lecture.json +1129 -0
- package/plugins/plugin-html-slides/ui/icon.svg +5 -0
- package/plugins/plugin-html-slides/ui/index.html +1349 -0
- package/plugins/plugin-mindmap/LICENSE +55 -0
- package/plugins/plugin-mindmap/dist/logic.js +966 -0
- package/plugins/plugin-mindmap/docs/manual.md +145 -0
- package/plugins/plugin-mindmap/manifest.json +39 -0
- package/plugins/plugin-mindmap/samples/book-club.json +480 -0
- package/plugins/plugin-mindmap/ui/icon.svg +5 -0
- package/plugins/plugin-mindmap/ui/index.html +1774 -0
- package/plugins/plugin-plan/LICENSE +55 -0
- package/plugins/plugin-plan/dist/logic.js +1029 -0
- package/plugins/plugin-plan/docs/manual.md +261 -0
- package/plugins/plugin-plan/manifest.json +51 -0
- package/plugins/plugin-plan/samples/kimchi-day.json +1514 -0
- package/plugins/plugin-plan/samples/meeting-outline.json +653 -0
- package/plugins/plugin-plan/samples/reading-class.json +1577 -0
- package/plugins/plugin-plan/ui/icon.svg +7 -0
- package/plugins/plugin-plan/ui/index.html +1523 -0
- package/plugins/plugin-png/LICENSE +55 -0
- package/plugins/plugin-png/dist/logic.js +1758 -0
- package/plugins/plugin-png/docs/manual.md +344 -0
- package/plugins/plugin-png/manifest.json +35 -0
- package/plugins/plugin-png/ui/icon.svg +5 -0
- package/plugins/plugin-png/ui/index.html +2885 -0
- package/plugins/plugin-process-log/LICENSE +55 -0
- package/plugins/plugin-process-log/dist/logic.js +406 -0
- package/plugins/plugin-process-log/docs/manual.md +131 -0
- package/plugins/plugin-process-log/manifest.json +43 -0
- package/plugins/plugin-process-log/samples/design-decisions.json +241 -0
- package/plugins/plugin-process-log/ui/icon.svg +7 -0
- package/plugins/plugin-process-log/ui/index.html +721 -0
- package/plugins/plugin-story/LICENSE +55 -0
- package/plugins/plugin-story/dist/logic.js +2201 -0
- package/plugins/plugin-story/docs/manual.md +428 -0
- package/plugins/plugin-story/manifest.json +49 -0
- package/plugins/plugin-story/samples/scene-body.json +758 -0
- package/plugins/plugin-story/samples/time-and-groups.json +989 -0
- package/plugins/plugin-story/ui/icon.svg +4 -0
- package/plugins/plugin-story/ui/index.html +2783 -0
- package/plugins/plugin-svg/LICENSE +55 -0
- package/plugins/plugin-svg/dist/logic.js +2150 -0
- package/plugins/plugin-svg/docs/manual.md +314 -0
- package/plugins/plugin-svg/manifest.json +45 -0
- package/plugins/plugin-svg/samples/rocket-icon.json +1305 -0
- package/plugins/plugin-svg/samples/yard-cat.json +7796 -0
- package/plugins/plugin-svg/ui/icon.svg +4 -0
- package/plugins/plugin-svg/ui/index.html +2017 -0
- package/plugins/plugin-tree/LICENSE +55 -0
- package/plugins/plugin-tree/dist/logic.js +505 -0
- package/plugins/plugin-tree/docs/manual.md +140 -0
- package/plugins/plugin-tree/manifest.json +45 -0
- package/plugins/plugin-tree/samples/book-club.json +473 -0
- package/plugins/plugin-tree/samples/sort-memos.json +604 -0
- package/plugins/plugin-tree/ui/icon.svg +7 -0
- package/plugins/plugin-tree/ui/index.html +1305 -0
- package/schema/aic_describe.input.json +11 -0
- package/schema/aic_describe.output.json +67 -0
- package/schema/aic_observe.input.json +14 -0
- package/schema/aic_observe.output.json +47 -0
- package/schema/aic_send.input.json +15 -0
- package/schema/aic_send.output.json +38 -0
- package/schema/aic_update.input.json +19 -0
- package/schema/aic_update.output.json +39 -0
- package/schema/common.json +127 -0
- package/template/plugin/LICENSE +55 -0
- package/template/plugin/README.md +27 -0
- package/template/plugin/docs/manual.md +31 -0
- package/template/plugin/logic.js +337 -0
- package/template/plugin/manifest.json +27 -0
- package/template/plugin/ui/icon.svg +4 -0
- package/template/plugin/ui/index.html +269 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Animation manual
|
|
2
|
+
|
|
3
|
+
This is the detailed manual that people and the AI read together. You open it from the plugin window of the AIC screen with [설명서] (Manual), and the AI reads it with `read_plugin_manual`.
|
|
4
|
+
|
|
5
|
+
## What this screen does
|
|
6
|
+
|
|
7
|
+
It adds motion to small SVG pictures such as icons and 2D sprites. The picture is at the top and a timeline is below it. You play the motion, then point at a paused moment or a time range on the timeline and talk with the AI to change the motion. You save the result as a self-animating SVG file or an HTML file.
|
|
8
|
+
|
|
9
|
+
If you only need one still picture, the SVG Image plugin fits better. This screen draws with the same parts as the SVG Image plugin, and the drawing operations are the same.
|
|
10
|
+
|
|
11
|
+
## How a picture and its motion are built
|
|
12
|
+
|
|
13
|
+
- **Picture**: there is one per screen. Its width and height are set when you start and do not change. The length of the motion (in seconds) and whether it starts over when it ends can be changed later.
|
|
14
|
+
- **Part**: each shape that makes up the picture. There are rectangles, circles, ellipses, lines, polygons and paths. Ids look like `pt1`, `pt2` and stay the same when you rename or move a part.
|
|
15
|
+
- **Group**: a part that holds other parts. When you move or rotate a group, the parts inside move with it. Group the things that move together (an arm, a head, a wheel) and move the group.
|
|
16
|
+
- **Pivot**: the one point that stays still when a part is rotated or resized. For an arm it is the shoulder, for a wheel the center. Each part has one, and it does not change during the motion.
|
|
17
|
+
- **Keyframe**: a point that says "this property of this part has this value at this second". Ids look like `kf1`. The screen fills in the values between two keyframes.
|
|
18
|
+
- **Property**: there are six things that can move.
|
|
19
|
+
|
|
20
|
+
| Property | Name | Value |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| Position | `move` | `[x, y]`. How far the part is moved in the picture |
|
|
23
|
+
| Rotation | `rotate` | Degrees, clockwise. 720 turns it twice |
|
|
24
|
+
| Size | `scale` | One number or `[width, height]`. 1 is the original size |
|
|
25
|
+
| Opacity | `opacity` | 0 to 1. At 0 it is invisible |
|
|
26
|
+
| Fill color | `fill` | `#rrggbb`. Only for shapes with a fill |
|
|
27
|
+
| Stroke color | `stroke` | `#rrggbb`. Only for shapes with a stroke color |
|
|
28
|
+
|
|
29
|
+
- **Ease**: how the value changes from one keyframe to the next. It is one of five.
|
|
30
|
+
|
|
31
|
+
| Name | Meaning |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `linear` | Steady |
|
|
34
|
+
| `ease-in` | Slow start |
|
|
35
|
+
| `ease-out` | Slow stop |
|
|
36
|
+
| `ease-in-out` | Slow start and slow stop |
|
|
37
|
+
| `hold` | Stays, then jumps at the next keyframe |
|
|
38
|
+
|
|
39
|
+
- **Mark**: a name given to one moment or a time range. Ids look like `mk1`. If you name times like "highest point" or "walking", you can talk with names instead of numbers.
|
|
40
|
+
|
|
41
|
+
These are the rules for values.
|
|
42
|
+
|
|
43
|
+
- A property without keyframes always has the value written on the part.
|
|
44
|
+
- A property with keyframes keeps the first value before the first keyframe and the last value after the last keyframe.
|
|
45
|
+
- Each property is computed on its own. Position and rotation keyframes can be at different times.
|
|
46
|
+
- Time is in seconds, up to a thousandth of a second.
|
|
47
|
+
|
|
48
|
+
## The screen
|
|
49
|
+
|
|
50
|
+
- **Top bar**: one row of icons. From the left: four tools ([Select], [Point], [Move parts], [Pan]), the fill and stroke color boxes, zoom out, zoom in and [Fit to screen], then the picture size and length. On the right are [Save], [How to use], [Show timeline rows] and [Selection and lists]. Hover over an icon to see its name and what it does.
|
|
51
|
+
- **Picture**: the picture at the play position. Selected parts show a frame and their name. When you select one part that moves, a dotted line shows where it goes.
|
|
52
|
+
- **Timeline**: at the top are [Play], [Go to start], the current time and length, [Stamp keyframe] and [Delete selected keyframes]. Below that is the ruler with ticks, marks and the play position. Below the ruler, each part that has keyframes or is selected gets a row. Click the triangle on a part row to open one row per property. The dots on a row are keyframes.
|
|
53
|
+
- **Send box**: appears at the top of the picture area as soon as you select anything, and goes away when nothing is selected. It shows what you selected. Write a message and press Enter or [Send to AI]. It hides while you drag on the picture, and it does not appear on a view-only screen.
|
|
54
|
+
- **Side panel**: hidden at first. Open it with [Selection and lists]. It shows the values of what you selected, editing one keyframe, naming, the picture length and loop, the part list and the mark list.
|
|
55
|
+
- **Language**: the screen text follows the language of the AIC screen (English or Korean). The button names in this manual are the English ones. What the screen sends to the AI stays in English.
|
|
56
|
+
|
|
57
|
+
## What you and the AI can do
|
|
58
|
+
|
|
59
|
+
| Task | What you do | What the AI does |
|
|
60
|
+
| --- | --- | --- |
|
|
61
|
+
| Start | On the start screen, press [Start with this sample] on a sample, or write a width, height and length and press [Start with an empty picture] | Asks you first, then `canvas.start` |
|
|
62
|
+
| Draw | Nothing. Ask the AI in words | `part.add`, `part.set`, `part.group`, `part.order`, `part.remove`. The same as the SVG Image plugin |
|
|
63
|
+
| Play and pause | The [Play] button or Space | Nothing. Playing happens only on your screen |
|
|
64
|
+
| Move the time | Click the top of the ruler, drag the red handle, or use the left and right arrow keys (with Shift for bigger steps), Home and End | Nothing. To read a moment, it gives `read_concept` the scope `t=0.6` |
|
|
65
|
+
| Make motion | Select a part, write the values at the current moment with [Stamp keyframe], then move the time and drag the part | Gives `key.set` a part, a time and the values at that moment |
|
|
66
|
+
| Move a part | Drag it with the [Move parts] tool. If its position has keyframes, the keyframe at the current moment changes. If not, the part's position changes | `key.set` if there are keyframes, `part.place` if not |
|
|
67
|
+
| Change a color | Select a shape and use the color boxes on the top bar. If that color has keyframes, the keyframe at the current moment changes | `key.set` if there are keyframes, `part.set` if not |
|
|
68
|
+
| Move keyframes | Drag a dot on the timeline sideways. If several are selected, they move together. Hold Alt while dragging to snap to a thousandth of a second | `at` of `key.update`, or `key.shift` for several |
|
|
69
|
+
| Edit a keyframe | Select one dot, change its time, value or ease in the side panel, then press [Apply] | `key.update` |
|
|
70
|
+
| Delete keyframes | Select dots and press Delete or [Delete selected keyframes]. If a part and a time range are selected together, the keyframes inside are deleted | Asks you first, then `key.remove` |
|
|
71
|
+
| Name a time | Select a moment or a time range, write a name in the side panel and press [Add mark] | `mark.add` |
|
|
72
|
+
| Length and loop | Change them under "Picture" in the side panel and press [Change length and loop] | `canvas.set` |
|
|
73
|
+
| Point and talk | Select, write a message in the send box and press [Send to AI] | Reads it with `read_selection` |
|
|
74
|
+
| Only select | Select, then say "this" or "this moment" in the chat | `read_selection` shows it as "화면에서 지금 고른 것(보내지 않음)" (picked on screen now, not sent) |
|
|
75
|
+
| Save | [Save as moving SVG], [Save as HTML] or [Save first moment as PNG] in the [Save] menu | Nothing. You save from the screen |
|
|
76
|
+
|
|
77
|
+
## Selecting in detail
|
|
78
|
+
|
|
79
|
+
On this screen you can say exactly what you are pointing at. There are four kinds of selection, and you can combine them.
|
|
80
|
+
|
|
81
|
+
| What you select | How |
|
|
82
|
+
| --- | --- |
|
|
83
|
+
| Parts | Click in the picture. The first click selects the outermost group, and clicking the same spot again goes one level inside. Shift-click adds or removes. You can also click a part name on the timeline or in the part list in the side panel |
|
|
84
|
+
| Properties of a part | Open a part row on the timeline and click a property name (position, rotation and so on). Shift adds more |
|
|
85
|
+
| One moment | Click the top of the ruler. Dragging the play position or pausing also selects that moment |
|
|
86
|
+
| A time range | Drag sideways on the ruler. Clicking a mark selects its moment or time range |
|
|
87
|
+
| Parts and time together | Drag sideways across a part row or a property row. Dragging across several rows selects all of them. Just clicking a row selects that row and that moment |
|
|
88
|
+
| Keyframes | Click a dot on the timeline. Shift adds or removes. A dot on a part row stands for the keyframes of all that part's properties at that moment |
|
|
89
|
+
| A spot on the picture | Click a spot with the [Point] tool, or drag over empty space with the [Select] tool to mark an area |
|
|
90
|
+
|
|
91
|
+
Rules to know:
|
|
92
|
+
|
|
93
|
+
- Parts and time are set separately and sent together. If you select a part and then drag on the ruler, you get "this part in this time range". The selected time stays when you select another part.
|
|
94
|
+
- Selecting keyframes clears the parts, time and spot, because one keyframe already sets the part, property and time.
|
|
95
|
+
- Selecting a spot (a point or an area) clears parts and keyframes, but the time stays. Use it to say where something should go, as in "here at 0.6 seconds".
|
|
96
|
+
- Esc or [×] in the send box clears everything you selected. The play position stays.
|
|
97
|
+
- The moment you were looking at, and whether it was playing, always go with your selection.
|
|
98
|
+
|
|
99
|
+
Examples:
|
|
100
|
+
|
|
101
|
+
- "The rotation of this arm between 1 and 2 seconds": open the arm row and drag across the rotation row from 1 to 2 seconds.
|
|
102
|
+
- "The ball is too flat here": pause at that moment and click the ball.
|
|
103
|
+
- "Make this keyframe a little later": click the dot and say it. Or drag the dot yourself.
|
|
104
|
+
- "At 2 seconds it should be here": click 2 seconds on the ruler and click that spot with the [Point] tool.
|
|
105
|
+
|
|
106
|
+
## What the AI reads
|
|
107
|
+
|
|
108
|
+
`read_concept` with no scope gives the picture, marks, part tree and motion. The text in square brackets is how the value changes from that keyframe to the next. The built-in sample's part and mark names are in Korean, because they are content of the sample.
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
Animation picture (cv1): 160×120, length 1.2s, starts over when it ends. 5 parts (shapes 4, groups 1), 16 keyframes, 4 marks.
|
|
112
|
+
|
|
113
|
+
Marks (names given to times)
|
|
114
|
+
- (mk1) "바닥에 닿음" 0s
|
|
115
|
+
- (mk2) "올라감" 0s~0.6s
|
|
116
|
+
|
|
117
|
+
Parts (from the bottom layer up. The placement and colors here are the values of properties without keyframes)
|
|
118
|
+
- (pt1) "바닥" line x1 20 y1 102 x2 140 y2 102, stroke #8d6e63 width 2
|
|
119
|
+
- (pt3) "공" group, 2 parts, pivot (80, 100), 7 keyframes (move, scale)
|
|
120
|
+
- (pt4) "공 몸통" circle cx 80 cy 86 r 14, fill #e53935, 3 keyframes (fill)
|
|
121
|
+
|
|
122
|
+
Motion (parts with keyframes. ...)
|
|
123
|
+
- (pt3) "공" group
|
|
124
|
+
- move: (kf1) 0s (0, 0) [ease-out] (kf2) 0.6s (0, -60) [ease-in] (kf3) 1.2s (0, 0)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
What it reads depends on the scope.
|
|
128
|
+
|
|
129
|
+
| Scope | What it reads |
|
|
130
|
+
| --- | --- |
|
|
131
|
+
| `pt3` | That part's shape values, placement, all its keyframes, and the parts inside if it is a group |
|
|
132
|
+
| `kf2` | That keyframe and the keyframes just before and after it for the same property |
|
|
133
|
+
| `mk2` | That mark and the keyframes in its time range |
|
|
134
|
+
| `t=0.6` | That moment: the values of parts with keyframes, the area each part covers, and a letter map |
|
|
135
|
+
|
|
136
|
+
The letter map splits the picture at that moment into 16 columns and writes one letter in each cell for what is drawn on top there. Each top-level part (or group) has one letter. Below is the moment the ball is highest.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
................
|
|
140
|
+
.......cc.......
|
|
141
|
+
.......cc.......
|
|
142
|
+
.......cc.......
|
|
143
|
+
................
|
|
144
|
+
(middle rows left out)
|
|
145
|
+
..aaaaabbaaaaa..
|
|
146
|
+
................
|
|
147
|
+
a (pt1) "바닥" line
|
|
148
|
+
b (pt2) "그림자" ellipse
|
|
149
|
+
c (pt3) "공" group
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`read_image` shows it as a picture. `view` chooses what to see.
|
|
153
|
+
|
|
154
|
+
| `view` | What the AI sees |
|
|
155
|
+
| --- | --- |
|
|
156
|
+
| `{ "time": 0.6 }` | The whole picture at 0.6s. Without `view` it is the picture at 0s |
|
|
157
|
+
| `{ "time": 0.6, "region": { "x": 60, "y": 10, "w": 40, "h": 40 } }` | Only that area of the picture at 0.6s, in picture units. The area must be inside the picture |
|
|
158
|
+
| `{ "time": 0.6, "part": "pt3" }` | The area that part (or group) covers at 0.6s, with a margin of a tenth of its longer side. Other parts in that area show too. A moving part is followed, so the view is different at each moment, even outside the picture |
|
|
159
|
+
|
|
160
|
+
`time` can be left out with `region` or `part`, and then it is 0s. `region` and `part` cannot be given together. The `size` of `read_image` (the number of pixels on the longer side) applies to the chosen area, so a smaller area shows more detail. If a value is wrong, for example a time outside the length or an area outside the picture, no picture is given and the reason and the accepted values are shown. To see values and areas as text, read with `t=`.
|
|
161
|
+
|
|
162
|
+
The AI reads what you pointed at with `read_selection`. The values are computed again from the screen as you see it now.
|
|
163
|
+
|
|
164
|
+
```text
|
|
165
|
+
The paused moment the person was looking at: 0.3s.
|
|
166
|
+
Selected time: from 0.3s to 0.9s (0.6s long).
|
|
167
|
+
1 selected targets:
|
|
168
|
+
- (pt3) "공" group. Selected properties: move
|
|
169
|
+
- move: (0, -41.08) at 0.3s, (0, -41.08) at 0.9s. Keyframes in the range: (kf2) 0.6s (0, -60) [ease-in]. Just before: (kf1) 0s (0, 0) [ease-out]. Just after: (kf3) 1.2s (0, 0) [linear]
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Working together
|
|
173
|
+
|
|
174
|
+
1. You say what should move and how. The AI asks for the picture size and length, then starts.
|
|
175
|
+
2. The AI draws the picture. It groups parts that move together and sets the pivot of groups that rotate or resize.
|
|
176
|
+
3. The AI writes the values at each key moment with `key.set`, and names key moments with `mark.add`.
|
|
177
|
+
4. The AI reads two or three key moments with `t=` to check the motion came out as meant, then asks you to play it.
|
|
178
|
+
5. You play it, pause at a moment that looks wrong or drag a time range on the timeline, and say what you want.
|
|
179
|
+
6. The AI reads what you pointed at with `read_selection` and changes only the range you pointed at, on the part you pointed at.
|
|
180
|
+
7. When you like it, you get the file with [Save].
|
|
181
|
+
|
|
182
|
+
## Things the AI asks you first
|
|
183
|
+
|
|
184
|
+
- Whether to start from a sample or an empty picture, and the picture size and length.
|
|
185
|
+
- Whether it should start over when it ends. If it loops, the first and last look must match so there is no jump.
|
|
186
|
+
- Before deleting parts or keyframes.
|
|
187
|
+
- When it is unclear which part something belongs to (where the arm ends).
|
|
188
|
+
- When doing what you want means changing things outside the time range you pointed at.
|
|
189
|
+
|
|
190
|
+
## Common problems
|
|
191
|
+
|
|
192
|
+
- **`part.place` or `part.set` is rejected.** If that property has keyframes, the value written on the part does not show in the picture, so it is not accepted. Set the value at a moment with `key.set`, or remove the motion with `key.remove`.
|
|
193
|
+
- **A part rotates around the wrong point.** Its pivot was set to the center of the part's area. Give `part.place` a `pivot` to move it to the shoulder or the wheel center. You can change the pivot even when there are keyframes.
|
|
194
|
+
- **The loop jumps.** The value at 0s and the value at the last time are different. Make the last keyframe match the value at 0s.
|
|
195
|
+
- **A time outside the length is rejected.** Make the length longer with `canvas.set` first. To make the length shorter, first pull in or delete the keyframes and marks after the new length.
|
|
196
|
+
- **A group cannot be ungrouped.** A group with keyframes cannot be ungrouped. Delete the group's keyframes first.
|
|
197
|
+
- **A color does not move.** A shape without a fill cannot have fill color keyframes. To make something appear from nothing, move its opacity.
|
|
198
|
+
- **The selected time is still there.** The selected time stays when you select another part. Press Esc to clear everything.
|
|
199
|
+
- **The AI does not know your change.** What you change on the screen is merged when the AI sends its next operation. The `read_selection` description is computed from the screen as you see it now, so what you pointed at is read right away.
|
|
200
|
+
|
|
201
|
+
## Saved files
|
|
202
|
+
|
|
203
|
+
- **Moving SVG**: one file that moves by itself. It opens in a browser as is and plays when put in a web page as an image. It has no scripts.
|
|
204
|
+
- **HTML**: the same picture, centered to fit the window. Click the picture to pause and click again to continue.
|
|
205
|
+
- **PNG**: one picture of the first moment (0s). Empty areas are transparent.
|
|
206
|
+
|
|
207
|
+
The playback on the screen and the playback of the saved file use the same computation, so they show the same picture at the same moment.
|
|
208
|
+
|
|
209
|
+
## Not yet available
|
|
210
|
+
|
|
211
|
+
- Moving along a curve, motion that changes a shape's outline, skeletons, sound.
|
|
212
|
+
- Several motions saved separately. Split motions into named time ranges instead.
|
|
213
|
+
- Saving as video, GIF or a sprite sheet.
|
|
214
|
+
- Importing a picture from the SVG Image plugin as is. The part operations have the same input, so the AI can read that screen and draw it again with the same input.
|
|
215
|
+
- Handles for rotating or resizing by hand. Ask the AI in words, or change keyframe values in the side panel.
|
|
216
|
+
- Zooming the timeline. The timeline always fits the whole length to its width.
|
|
217
|
+
- Saving the moment you are looking at as a PNG. The PNG you save is the first moment. The AI can see any moment with `read_image`.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "aic.animation",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"dataVersion": 1,
|
|
5
|
+
"title": "Animation",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"protocol": "0.1",
|
|
8
|
+
"logic": "dist/logic.js",
|
|
9
|
+
"ui": "ui/index.html",
|
|
10
|
+
"icon": "ui/icon.svg",
|
|
11
|
+
"manual": "docs/manual.md",
|
|
12
|
+
"about": "A screen for adding motion to small SVG pictures such as icons and 2D sprites. A picture is made of parts such as rectangles, circles and curves. You write keyframes that say where a part is, how far it is turned and what color it has at a given second, and the motion between keyframes is filled in. The picture is at the top and a timeline is below it, so you can play and pause. You can select parts, properties, a moment, a time range and keyframes, alone or together, and point narrowly, for example \"the rotation of this arm between 1 and 2 seconds\". The AI reads the same selection and edits it. You can name a moment or a time range so that later conversations point to the same place. Start from a built-in sample or an empty picture, and save the result as a self-animating SVG file or an HTML file.",
|
|
13
|
+
"requires": {
|
|
14
|
+
"os": "any",
|
|
15
|
+
"external": []
|
|
16
|
+
},
|
|
17
|
+
"examples": [
|
|
18
|
+
{
|
|
19
|
+
"ask": "I want one part of an icon to wiggle back and forth",
|
|
20
|
+
"does": "The AI draws the picture, groups the parts that should move, and writes keyframes for how far they turn at which second. You play it, pause, and point at the moment you want changed."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"ask": "I want only the second half of this motion to be slower",
|
|
24
|
+
"does": "You drag over that range of that part on the timeline and say what you want. The AI edits only the keyframes inside that range."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"ask": "I want the moving picture as a file I can put on a web page",
|
|
28
|
+
"does": "Save it from the save menu as a self-animating SVG file or an HTML file. Saving as PNG gives the picture at the first moment."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
|
2
|
+
<rect x="2" y="2" width="20" height="20" rx="5" fill="#d23f3f"/>
|
|
3
|
+
<circle cx="7" cy="16" r="1.5" fill="#ffffff" fill-opacity="0.55"/>
|
|
4
|
+
<circle cx="10.1" cy="11.6" r="2.2" fill="#ffffff" fill-opacity="0.8"/>
|
|
5
|
+
<circle cx="15.6" cy="9" r="3.2" fill="#ffffff"/>
|
|
6
|
+
</svg>
|