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: CHANGELOG.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -33,4 +33,11 @@ Initial resease!
33
33
- The `animation_state` table now contains `animation_id`, instead of `animation` table data. It will be better to log or `pprint` the animation state.
34
34
- Rename file `panthera_system` to `panthera_internal`.
35
35
- Add support for `is_editor_only` timeline key property
36
-
- Add support for `easing_custom` timeline key property
36
+
- Add support for `easing_custom` timeline key property
37
+
38
+
39
+
## Version v4
40
+
41
+
- Add Defold Editor scripts to create and edit Panthera animations directly from the Defold Editor
42
+
- Panthera Editor should be started before using the scripts.
43
+
- Add time overflow handling for more precise animation playback.
After that, select `Project ▸ Fetch Libraries` to update [library dependencies]((https://defold.com/manuals/libraries/#setting-up-library-dependencies)). This happens automatically whenever you open a project so you will only need to do this if the dependencies change without re-opening the project.
@@ -47,11 +47,13 @@ After that, select `Project ▸ Fetch Libraries` to update [library dependencies
47
47
48
48
| Platform | Library Size |
49
49
| ---------------- | ------------ |
50
-
| HTML5 |**11.51 KB**|
51
-
| Desktop / Mobile |**19.53 KB**|
50
+
| HTML5 |**12.42 KB**|
51
+
| Desktop / Mobile |**21.35 KB**|
52
52
53
53
54
-
### Hot Reloading Animations for Development
54
+
### Hot Reloading Animations for Development [Optional]
55
+
56
+
> **Note:** Hot reloading is designed for use in development environments only. Hot reloading only works for animations from JSON files. If you using a lua table for animations, hot reloading will not work.
55
57
56
58
Panthera Runtime supports hot reloading of animations for a more efficient development workflow. This feature allows animations to be reloaded automatically without restarting your Defold game, facilitating rapid iteration on animation assets.
> **Note:** Hot reloading is designed for use in development environments only. Hot reloading only works for animations from JSON files. If you using a lua table for animations, hot reloading will not work.
85
-
86
-
87
86
## API Reference
88
87
89
88
### Quick API Reference
@@ -120,9 +119,10 @@ Load and play a animation file using the GO adapter.
@@ -86,6 +88,8 @@ Contains the information, latest news and quick access buttons to leave feedback
86
88
---
87
89
List of all your projects. Here you can open, delete, or create a new project. Projects are sorted by the last modified date. After creation you can rename the project by right click -> Rename. This rename is not affecting the saved file name and can be used for better navigation.
88
90
91
+
To create first animation project, click on the "Plus" button and select "New Animation". As file extension use `.lua` or `.json`.
92
+
89
93
> Project Tabs
90
94
---
91
95
All currently opened projects are displayed here. You can switch between them by clicking on the tab.
@@ -138,6 +142,16 @@ Displays the properties of the selected node. You can view the properties here.
138
142
Contains all the images in the atlas. You can add new images here.
139
143
140
144
145
+
## Interface adjustments
146
+
147
+
You can change the UI scale by pressing `Ctrl` + `Shift` + `-` to scale down and `Ctrl` + `Shift` + `+` to scale up.
You can import the Defold GUI layout to the Panthera Editor. The animation file should be placed inside your Defold project folder to correct reloading in the future.
299
+
You can import the Defold GUI/Collection/GO layout to the Panthera Editor. The animation file should be placed inside your Defold project folder to correct reloading in the future (it uses relative path's from `game.project` file).
286
300
287
301
1. Open animation project.
288
302
2. Click on the plus icon in the Nodes panel.
289
303
3. Select "Bind Defold File".
290
304
4. Choose the `.gui` file from your Defold project.
291
305
292
-
The GUI layout will be imported and displayed in the Editor View. The file state is changed to linked. The GUI will be reloaded automatically when the project is opened, or manually by clicking the "Reload Binded File" button.
306
+
The layout will be imported and displayed in the Editor View. The file state is changed to linked. The file will be reloaded automatically when the project is opened, or manually by clicking the "Reload Binded File" button.
293
307
294
308
The layout nodes can't be modified. But you can animate them. Nodes layout data will be not stored in the animation file. Only the animation data will be stored.
295
309
310
+
# Create Animations from Defold Editor
311
+
312
+
> Panthera Runtime v4 is required for this feature.
313
+
314
+
You can create and open animations directly from Defold Editor. Prerequisites:
315
+
316
+
- The Panthera Editor should be opened.
317
+
- The Panthera Runtime library should be included in your Defold project.
318
+
319
+
To create new animation from Defold Editor, press right click on the `.gui`, `.go` or `.collection` file in the Defold Editor and select "Create Panthera Animation". The Panthera Editor will be opened with the new animation project. The new file will be created in the same folder as the `.gui`, `.go` or `.collection` file. The name will be `{file_name}_panthera.lua`.
To open Panthera animation (both in json or lua formars) from Defold Editor, press right click on the Panthera animation file and select "Open Panthera Animation". The Panthera Editor will be opened with the selected animation project.
@@ -410,6 +440,13 @@ You can add a nested animation to the scene. Nested animations can be created in
410
440
In the current version, the cyclic references are not protected. The cyclic references can cause the infinite loop in the animation playback. Be careful with it.
411
441
412
442
443
+
# Workflow Example
444
+
445
+
Here is a 4 minutes of making simple appear/disappear animations in Panthera Editor.
0 commit comments