Qt Lottie Animation

Qt Lottie Animation provides a QML API for rendering graphics and animations that are exported in JSON format by the Bodymovin plugin for Adobe After Effects.

快速入门

Import the types using the the following statement:

import Qt.labs.lottieqt
												

GitHub page for Bodymovin for instructions on how to download and install the plugin for Adobe After Effects.

局限性

The implementation follows the master specification for bodymovin . Deviations in exported Bodymovin files compared to the specification are taken into account as much as possible when differences are noticed.

一般局限性

  • precomps are not supported
  • expressions are not supported
  • the timeline only supports frame-mode, not time-mode

动画级局限性

The following properties are not supported:

  • assets - reusable text and images
  • chars text

shape 层和 alpha mask adjustment layer are supported.

The following properties are not supported:

  • ao (auto-orientation)
  • bm (blend mode)
  • maskProperties (masks)
  • sr (time stretch)

形状

The following elements and shapes are not supported:

  • the gstroke (group stroke) element
  • the star element
  • Nested Repeater shapes

Also note that the behavior when using multiple active trim paths (e.g. trim paths in nested groups) is unpredictable.

效果

The only supported effects are Slide and Layer Fill .

许可

Qt Lottie Animation is available under commercial licenses from Qt 公司 。此外,它是可用的根据 GNU GPL (一般公共许可) 第 3 版 。见 Qt 许可 进一步了解细节。

参考