# Lottie Export Failing - Help Please

**URL:** <https://forums.synfig.org/t/lottie-export-failing-help-please/11950>\
**Category:** Animation related help\
**Created:** [March 20, 2021, 7:27pm UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950 "2021-03-20T19:27:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris](https://forums.synfig.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@Chris](https://forums.synfig.org/u/Chris)\
**Post date:** [March 20, 2021, 7:27pm UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/1 "2021-03-20T19:27:33Z")

</div>

Spent the last two weeks painstakingly navigating Synfig’s learning curve to animate a lottie file for my website; it is a very simple sequence, just to provide a short-and-sweet mouseover animation when my website user hovers over the icon. Finally finished today, hit the export button, and I get a window full of command line type entries, beginning with the line “Traceback (most recent call last)”.

Instead of exporting the lottie (JSON) file as expected, I get a synfig file that ends with “.sifz.B3438B32F.” Opening it just opens synfig project again. No JSON anywhere.

I have been reading into it, and the best I can understand is that synfig is unable to convert Advanced Outlines to the lottie format. I am certain my project does not have any Advanced Outlines though, as Youtube informed me to avoid using them from the start. My project is just basic regions and outlines.

Is there a way to find out what type of ‘thing’ each individual layer is made of? I lack the tech knowledge to be able to investigate what the issue is using the command console, layman user here, never worked with SVGs, animation or anything beyond drawing pictures in MS Paint.

Any help would be appreciated, I had high hopes for being able to do what I need to do with synfig, rather disheartened today.

Thanks,

-Chris

---

<div class="post-metadata">

**Author:** ![ice0](https://forums.synfig.org/user_avatar/forums.synfig.org/ice0/32/4612_2.png) [@ice0](https://forums.synfig.org/u/ice0)\
**Post date:** [May 1, 2021, 5:54am UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/2 "2021-05-01T05:54:10Z")

</div>

Hi @Chris!

Can you share you file? I can take a look.

Also which version of Synfig/OS you are using?

---

<div class="post-metadata">

**Author:** ![tiago](https://forums.synfig.org/letter_avatar_proxy/v4/letter/t/f0a364/32.png) [@tiago](https://forums.synfig.org/u/tiago)\
**Post date:** [August 17, 2022, 8:13pm UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/3 "2022-08-17T20:13:20Z")

</div>

Hello, i’m having the exact same problem, just made a very simple animation for a mobile app im working and my sifz file only contain 3 simple animated lines in a group also animated.  
For some reason my Synfig only renders a “\*.sifz.EED66731.sif” and an empty log file.  
He also shows an error msg: [Imgur: The magic of the Internet](https://imgur.com/VTrr9nO)

my file in .sifz: [https://drive.google.com/file/d/1t4Of4nzkDaVSvy2sWDV0e5z4C37MhxoW/view?usp=sharing](https://drive.google.com/file/d/1t4Of4nzkDaVSvy2sWDV0e5z4C37MhxoW/view?usp=sharing)

thanks in advance! 😃

---

<div class="post-metadata">

**Author:** ![rodolforg](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rodolforg](https://forums.synfig.org/u/rodolforg)\
**Post date:** [August 19, 2022, 10:09am UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/4 "2022-08-19T10:09:37Z")

</div>

@AnishG @ankit do you have any idea?  
@saurabh22

---

<div class="post-metadata">

**Author:** ![BobSynfig](https://forums.synfig.org/user_avatar/forums.synfig.org/bobsynfig/32/175_2.png) [@BobSynfig](https://forums.synfig.org/u/BobSynfig)\
**Post date:** [August 19, 2022, 10:29am UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/5 "2022-08-19T10:29:12Z")

</div>

“Fun” fact: I can load lottie-exporter plugin in 1.4.2/1.4.3 but not in 1.5.1…

Error from the export plugin on this .sifz file:

```auto
synfig(3168557) [13:30:48] info: Traceback (most recent call last):
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/lottie-exporter.py", line 166, in <module>
    new_file_name = parse(FILE_NAME)
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/lottie-exporter.py", line 68, in parse
    gen_layers(settings.lottie_format["layers"], canvas, canvas.get_num_layers() - 1)
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/layers/driver.py", line 162, in gen_layers
    gen_layer_group(lottie[-1],
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/layers/group.py", line 93, in gen_layer_group
    asset = add_precomp_asset(settings.lottie_format["assets"][-1], canvas, canvas.get_num_layers())
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/sources/precomp.py", line 28, in add_precomp_asset
    layers.driver.gen_layers(lottie["layers"], canvas, layer_itr-1)
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/layers/driver.py", line 140, in gen_layers
    gen_layer_shape_solid(lottie[-1],
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/layers/shape_solid.py", line 102, in gen_layer_shape_solid
    gen_mask(lottie["masksProperties"][0], invert, bline_point, index.inc())
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/helpers/mask.py", line 36, in gen_mask
    gen_properties_shapeKeyframed(lottie["pt"], bline_point, index.inc())
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/properties/shapeKeyframed.py", line 49, in gen_properties_shapeKeyframed
    gen_bline_outline(lottie["k"], node)
  File "/tmp/.mount_3NICKj/usr/share/synfig/plugins/lottie-exporter/properties/shapePropKeyframe/outline.py", line 42, in gen_bline_outline
    pos = entry["point"]
KeyError: 'point'

```

Other points, maybe irrelevant in this case, but that occur in Ubuntu 20.04

There is still the error with libcanberra:  
Gtk-Message: 14:11:16.910: Failed to load module “canberra-gtk-module”  
Gtk-Message: 14:11:16.912: Failed to load module “canberra-gtk-module”

which can be solved by adding GTK\_PATH= in front:  
`GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0 ./SynfigStudio-1.5.1-testing-2022.08.01-linux64-4f42a.appimage`

I also have some test plugins with pyGtk UI which can’t display images from resources (on 20.04) but were working in 18.04, giving GDK-PIXBUFF errors.  
I add to create a symlink from `/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0` to` /usr/lib/gdk-pixbuf-2.0`

---

<div class="post-metadata">

**Author:** ![AnishG](https://forums.synfig.org/user_avatar/forums.synfig.org/anishg/32/4428_2.png) [@AnishG](https://forums.synfig.org/u/AnishG)\
**Post date:** [August 24, 2022, 1:08pm UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/6 "2022-08-24T13:08:59Z")

</div>

Hi,  
It’s been a while since I interacted with Synfig codebase. But, by looking at the error, it seems like the lottie exporter is not able to parse one of the outline layers.

I am not sure if this is an edge case or something changed in the .sif format from the time when exporter was coded.

---

<div class="post-metadata">

**Author:** ![Dale](https://forums.synfig.org/letter_avatar_proxy/v4/letter/d/ecd19e/32.png) [@Dale](https://forums.synfig.org/u/Dale)\
**Post date:** [August 25, 2022, 11:49am UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/7 "2022-08-25T11:49:15Z")

</div>

Hi all,

Im here with the same/similar issue.  
I have imported 3 png files and am moving them left to right on the screen. In this circumstance i can export to Lottie.  
However when i change the opacity or interpolation (to have different images interact) i get an error message when trying to export to lottie and no lottie is created.  
I am new here so was wondering if this was normal to not be able to export to lottie when changing opacity / interpolation.

Edit: my version is SynfigStudio-1.4.2-2021.07.29-win64-dc54d

Kind regards,  
Dale

---

<div class="post-metadata">

**Author:** ![tiago](https://forums.synfig.org/letter_avatar_proxy/v4/letter/t/f0a364/32.png) [@tiago](https://forums.synfig.org/u/tiago)\
**Post date:** [August 25, 2022, 6:49pm UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/9 "2022-08-25T18:49:39Z")

</div>

Hi @Dale  
Never tested PNG, but opacity is working if is a vector shape (in synfig: “regions”), imported SVG from inkscape, just every node in the shape must have assimetrical curved points to hold the form. Unfortunatelly, i have got errors trying to export lines to lottie, so no lines allowed, for now…

---

<div class="post-metadata">

**Author:** ![BobSynfig](https://forums.synfig.org/user_avatar/forums.synfig.org/bobsynfig/32/175_2.png) [@BobSynfig](https://forums.synfig.org/u/BobSynfig)\
**Post date:** [August 28, 2022, 11:13am UTC](https://forums.synfig.org/t/lottie-export-failing-help-please/11950/10 "2022-08-28T11:13:27Z")

</div>

You can check the supported layers and limitations of the plugin here:

> <https://github.com/synfig/synfig/pull/756>
>
> \# Google Summer of Code 2019
> \*\*Student:\*\* Anish Gulati(@AnishGG)
> \*\*Mentors:\*\* …Konstantin Dmitriev(@morevnaproject), Artem Konoplin(@ice0)
> \*\*Project:\*\* \*\*\[Export Animation for Web\](https://summerofcode.withgoogle.com/archive/2019/projects/5080738523774976/)\*\*
> 
> Feature: #704 
> 
> \## Description
> Created a plugin which allows export of Synfig format animations(.sif/.sifz) to \[Lottie JSON format\](https://github.com/airbnb/lottie). Lottie is a library that renders animations natively on mobile and on the web. 
> To access this plugin, there is new menu entry "\*\*Plugins\*\*" - "\*\*Export to Lottie\*\*". Choosing this will export the currently opened file to Lottie format. After the export, we will have 3 files:
> \`\`\`
> FILE.html
> FILE.json
> FILE.log
> \`\`\`
> \- To play the file on a local browser, just open \`FILE.html\` with any browser like Firefox or Google Chrome. 
> \- \`FILE.json\` is the main file where the Lottie format animation resides. An alternative to play this file is using an online code editor like \[codepen.io\](https://codepen.io/). Here is an \[example implementation\](https://codepen.io/airnan/project/editor/ZeNONO/). \`FILE.json\` can be directly played using \[lottiefiles.com\](https://lottiefiles.com).
> \- \`FILE.log\` stores all the logs after the export. If a layer is not active/supported, it will be notified in the logs.
> 
> !\[front\_end\](https://user-images.githubusercontent.com/30872212/63610288-bde46780-c5f6-11e9-9300-4e43bff18b93.png)
> Currently plugin is capable to export most main graphic elements, with animation applied to their parameters (various types of interpolations supported), some converters can be applied to parameters (see detailed list of supported layers and parameters below). There is a partial support for exporting bones.
> 
> \### Demonstration
> Here is a video by @morevnaproject demonstrating the export process:
> 
> \*\*Example 1\*\*
> \[!\[IDemonstration video 1\](https://img.youtube.com/vi/cJq8yoP8Ji8/0.jpg)\](https://www.youtube.com/watch?v=cJq8yoP8Ji8)
> 
> \- Source file 1: http://www.konstantindmitriev.ru/lottie-demos/104/104.zip
> \- Exported result 1: http://www.konstantindmitriev.ru/lottie-demos/104/104.html
> 
> \- Source file 2: http://www.konstantindmitriev.ru/lottie-demos/103/103.zip
> \- Exported result 2: http://www.konstantindmitriev.ru/lottie-demos/103/103.html
> 
> \*\*Example 2\*\*
> \[!\[IDemonstration video 2\](https://img.youtube.com/vi/Wjw2nO8kYlc/0.jpg)\](https://www.youtube.com/watch?v=Wjw2nO8kYlc) 
> 
> 
> \## Supported Layers
> \- Star Layer
> \- Circle Layer
> \- Rectangle Layer
> \- Simple Circle Layer
> \- Solid Color Layer
> \- Import Image Layer
> \- Region Layer
> \- Polygon Layer
> \- Outline Layer
> \- Rotate Layer
> \- Scale Layer
> \- Translate Layer
> \- Group Layer
> \- Switch group Layer
> \- Skeleton Layer \[WIP\]
> 
> \## Supported Convert methods
> \- Average
> \- Composite
> \- Linear
> \- Radial Composite
> \- Scale
> \- Subtract
> \- Switch
> \- Weighted Average
> \- Bone Link
> 
> \### Limitations
> \- Layers like region, outline, and polygon are exported frame-by-frame because there is no exact alternative provided by Lottie and hence the animations tend to lag on larger displays(lottie calculates animation in real time provided the data). If this project is a success, we will be happy to ask Lottie developers to extend support for these layers.
> \- Animation of addition/deletion of bline points is supported yet. Lottie does not provides this, hence this will have to be implemented from the base. I will be aiming at providing support to this in the upcoming months.
> \- Exporting Bones (Skeleton) animation is not complete yet.
> 
> \### TODO
> \- Finalize support for bones (allow to attach groups and spline vertices to bones).
> \- Add support for Gradients.
> \- Add support for Advanced Outline Layer.
> 
> See full list of pending issues \[here\](https://github.com/synfig/synfig/milestone/4).
> 
> \## Code Contributions
> \- \[Code commits\](https://github.com/synfig/synfig/commits/gsoc2019-AnishGG?author=AnishGG)
> \- \[Tests\](https://github.com/synfig/synfig-tests-regressions/commits?author=AnishGG)
> 
> \## Development Notes
> \- \[List of supported features\](https://synfig-docs-dev.readthedocs.io/en/latest/projects/lottie/supported.html)
> \- \[Mappings from Synfig to Lottie format\](https://synfig-docs-dev.readthedocs.io/en/latest/projects/lottie/layers.html)
> \- \[Weekly development reports\](https://forums.synfig.org/t/gsoc-2019-export-animation-for-web/9507)

[https://synfig-docs-dev.readthedocs.io/en/latest/projects/lottie/supported.html](https://synfig-docs-dev.readthedocs.io/en/latest/projects/lottie/supported.html)  
[https://synfig-docs-dev.readthedocs.io/en/latest/projects/lottie/layers.html](https://synfig-docs-dev.readthedocs.io/en/latest/projects/lottie/layers.html)
