From 87a4b85f296b9ae10536d8588b58141a4b65ebbf Mon Sep 17 00:00:00 2001 From: AnishGulati Date: Wed, 17 Jul 2019 18:51:49 +0530 Subject: [PATCH] Update supported features; Update path to layer parameters in Lottie --- docs/projects/lottie/layers/group.rst | 40 ++++++++++ docs/projects/lottie/layers/rotate.rst | 17 ++++ docs/projects/lottie/layers/scale.rst | 17 ++++ docs/projects/lottie/layers/switch.rst | 34 ++++++++ docs/projects/lottie/layers/transform.rst | 17 ++++ docs/projects/lottie/supported.rst | 95 +++++++++++++++++++++++ 6 files changed, 220 insertions(+) create mode 100644 docs/projects/lottie/layers/group.rst create mode 100644 docs/projects/lottie/layers/rotate.rst create mode 100644 docs/projects/lottie/layers/scale.rst create mode 100644 docs/projects/lottie/layers/switch.rst create mode 100644 docs/projects/lottie/layers/transform.rst diff --git a/docs/projects/lottie/layers/group.rst b/docs/projects/lottie/layers/group.rst new file mode 100644 index 0000000..3ee9508 --- /dev/null +++ b/docs/projects/lottie/layers/group.rst @@ -0,0 +1,40 @@ +Group Layer +============ + ++------------------+------------------------------------------------------------------+ +| Property | Path to Property in lottie | ++==================+==================================================================+ +| Z depth | Depends on ordering of layers in lottie format | ++------------------+------------------------------------------------------------------+ +| Amount | layers/preComp.json -> "ks" -> helpers/transform.json -> "o" | ++------------------+------------------------------------------------------------------+ +| Blend_method | layers/preComp.json -> “bm” -> helpers/blendMode.json | ++------------------+------------------------------------------------------------------+ +| Origin | layers/preComp.json -> "ks" -> helpers/transform.json -> "p"/"a" | ++------------------+------------------------------------------------------------------+ +| Transformation | layers/preComp.json -> "ks" -> helpers/transform.json | ++------------------+------------------------------------------------------------------+ +| Canvas | sources/preComp.json | ++------------------+------------------------------------------------------------------+ +| Speed | layers/preComp.json -> "tm"(time remapping) | ++------------------+------------------------------------------------------------------+ +| Time Offset | layer/preComp.json -> "tm"(time remapping) | ++------------------+------------------------------------------------------------------+ +| Lock selection | Not needed | ++------------------+------------------------------------------------------------------+ +| Outline Grow | Global parameter -> ``settings.OUTLINE_GROW`` | ++------------------+------------------------------------------------------------------+ +| Z Range | Opacity of layers in canvas is modified accordingly | ++------------------+------------------------------------------------------------------+ +| Z Range Position | Opacity of layers in canvas is modified accordingly | ++------------------+------------------------------------------------------------------+ +| Z Range Depth | Opacity of layers in canvas is modified accordingly | ++------------------+------------------------------------------------------------------+ +| Z Range Blur | Not Supported | ++------------------+------------------------------------------------------------------+ + +Important points +---------------- + +- In Lottie, all the parts of shapes/elements lying outside a precomposition are cut off and never displayed. Hence the over all size of a pre-comp is increased by some amount as a precaution. Some part which is outside a pre-comp might come inside the overall canvas after some transformations(rotation/translation/scale). This increase is given by: + ``ADDITIONAL_PRECOMP_WIDTH`` and ``ADDITIONAL_PRECOMP_HEIGHT`` diff --git a/docs/projects/lottie/layers/rotate.rst b/docs/projects/lottie/layers/rotate.rst new file mode 100644 index 0000000..786b819 --- /dev/null +++ b/docs/projects/lottie/layers/rotate.rst @@ -0,0 +1,17 @@ +Rotate Layer +============ + ++----------+------------------------------------------------------------------+ +| Property | Path to Property in lottie | ++==========+==================================================================+ +| Origin | layers/preComp.json -> "ks" -> helpers/transform.json -> "p"/"a" | ++----------+------------------------------------------------------------------+ +| Amount | layers/preComp.json -> "ks" -> helpers/transform.json -> "r" | ++----------+------------------------------------------------------------------+ + + +Important points +---------------- + +- In Lottie, all the parts of shapes/elements lying outside a precomposition are cut off and never displayed. Hence the over all size of a pre-comp is increased by some amount as a precaution. Some part which is outside a pre-comp might come inside the overall canvas after some transformations(rotation/translation/scale). This increase is given by: + ``ADDITIONAL_PRECOMP_WIDTH`` and ``ADDITIONAL_PRECOMP_HEIGHT`` diff --git a/docs/projects/lottie/layers/scale.rst b/docs/projects/lottie/layers/scale.rst new file mode 100644 index 0000000..c8a5712 --- /dev/null +++ b/docs/projects/lottie/layers/scale.rst @@ -0,0 +1,17 @@ +Scale Layer +============ + ++----------+------------------------------------------------------------------+ +| Property | Path to Property in lottie | ++==========+==================================================================+ +| Origin | layers/preComp.json -> "ks" -> helpers/transform.json -> "p"/"a" | ++----------+------------------------------------------------------------------+ +| Amount | layers/preComp.json -> "ks" -> helpers/transform.json -> "s" | ++----------+------------------------------------------------------------------+ + + +Important points +---------------- + +- In Lottie, all the parts of shapes/elements lying outside a precomposition are cut off and never displayed. Hence the over all size of a pre-comp is increased by some amount as a precaution. Some part which is outside a pre-comp might come inside the overall canvas after some transformations(rotation/translation/scale). This increase is given by: + ``ADDITIONAL_PRECOMP_WIDTH`` and ``ADDITIONAL_PRECOMP_HEIGHT`` diff --git a/docs/projects/lottie/layers/switch.rst b/docs/projects/lottie/layers/switch.rst new file mode 100644 index 0000000..795aa26 --- /dev/null +++ b/docs/projects/lottie/layers/switch.rst @@ -0,0 +1,34 @@ +Switch Group Layer +================== + ++-------------------+-----------------------------------------------------------------------+ +| Property | Path to Property in lottie | ++===================+=======================================================================+ +| Z depth | Depends on ordering of layers in lottie format | ++-------------------+-----------------------------------------------------------------------+ +| Amount | layers/preComp.json -> "ks" -> helpers/transform.json -> "o" | ++-------------------+-----------------------------------------------------------------------+ +| Blend_method | layers/preComp.json -> “bm” -> helpers/blendMode.json | ++-------------------+-----------------------------------------------------------------------+ +| Origin | layers/preComp.json -> "ks" -> helpers/transform.json -> "p"/"a" | ++-------------------+-----------------------------------------------------------------------+ +| Transformation | layers/preComp.json -> "ks" -> helpers/transform.json | ++-------------------+-----------------------------------------------------------------------+ +| Canvas | sources/preComp.json | ++-------------------+-----------------------------------------------------------------------+ +| Speed | layers/preComp.json -> "tm"(time remapping) | ++-------------------+-----------------------------------------------------------------------+ +| Time Offset | layer/preComp.json -> "tm"(time remapping) | ++-------------------+-----------------------------------------------------------------------+ +| Lock selection | Not needed | ++-------------------+-----------------------------------------------------------------------+ +| Outline Grow | Global parameter -> settings.OUTLINE_GROW | ++-------------------+-----------------------------------------------------------------------+ +| Active Layer Name | Opacity of layers in canvas is modified according to the active layer | ++-------------------+-----------------------------------------------------------------------+ + +Important points +---------------- + +- In Lottie, all the parts of shapes/elements lying outside a precomposition are cut off and never displayed. Hence the over all size of a pre-comp is increased by some amount as a precaution. Some part which is outside a pre-comp might come inside the overall canvas after some transformations(rotation/translation/scale). This increase is given by: + ``ADDITIONAL_PRECOMP_WIDTH`` and ``ADDITIONAL_PRECOMP_HEIGHT`` diff --git a/docs/projects/lottie/layers/transform.rst b/docs/projects/lottie/layers/transform.rst new file mode 100644 index 0000000..1c4e3fb --- /dev/null +++ b/docs/projects/lottie/layers/transform.rst @@ -0,0 +1,17 @@ +Transform Layer +============ + ++----------+--------------------------------------------------------------+ +| Property | Path to Property in lottie | ++==========+==============================================================+ +| Origin | layers/preComp.json -> "ks" -> helpers/transform.json -> "p" | ++----------+--------------------------------------------------------------+ + + +Important points +---------------- + +- In Lottie, all the parts of shapes/elements lying outside a precomposition are cut off and never displayed. Hence the over all size of a pre-comp is increased by some amount as a precaution. Some part which is outside a pre-comp might come inside the overall canvas after some transformations(rotation/translation/scale). This increase is given by: + ``ADDITIONAL_PRECOMP_WIDTH`` and ``ADDITIONAL_PRECOMP_HEIGHT`` + +- Anchor point is always set to zero. But it is bound to change when the width and height of the pre-composition are changed diff --git a/docs/projects/lottie/supported.rst b/docs/projects/lottie/supported.rst index cc15293..515173c 100644 --- a/docs/projects/lottie/supported.rst +++ b/docs/projects/lottie/supported.rst @@ -267,6 +267,101 @@ Outline Layer - Animation of `Addition/Deletion` of vertices is not yet supported +Rotate Layer +------------ + ++-----------------+---------------------+---------------------------------------------+ +| Property | Value | Type(Animation) | ++=================+=====================+=============================================+ +| Origin | |tick| | |tick| | ++-----------------+---------------------+---------------------------------------------+ +| Amount | |tick| | |tick| | ++-----------------+---------------------+---------------------------------------------+ + +Scale Layer +----------- + ++-----------------+---------------------+---------------------------------------------+ +| Property | Value | Type(Animation) | ++=================+=====================+=============================================+ +| Origin | |tick| | |tick| | ++-----------------+---------------------+---------------------------------------------+ +| Amount | |tick| | |tick| | ++-----------------+---------------------+---------------------------------------------+ + +Translate Layer +--------------- + ++-----------------+---------------------+---------------------------------------------+ +| Property | Value | Type(Animation) | ++=================+=====================+=============================================+ +| Origin | |tick| | |tick| | ++-----------------+---------------------+---------------------------------------------+ + +Group Layer +----------- + ++------------------+---------------------+--------------------+ +| Property | Value | Type(Animation) | ++==================+=====================+====================+ +| Z depth | |tick| | |cross| | ++------------------+---------------------+--------------------+ +| Amount | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Blend_method | Partially supported | |minus| | ++------------------+---------------------+--------------------+ +| Origin | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Transformation | Skew not supported | Skew not supported | ++------------------+---------------------+--------------------+ +| Canvas | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Speed | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Time Offset | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Lock Selection | Not needed | Not needed | ++------------------+---------------------+--------------------+ +| Outline Grow | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Z Range | |tick| | Not needed | ++------------------+---------------------+--------------------+ +| Z Range Position | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Z Range Depth | |tick| | |tick| | ++------------------+---------------------+--------------------+ +| Z Range Blur | |cross| | |cross| | ++------------------+---------------------+--------------------+ + +Switch Group Layer +------------------ + ++-------------------+---------------------+--------------------+ +| Property | Value | Type(Animation) | ++===================+=====================+====================+ +| Z depth | |tick| | |cross| | ++-------------------+---------------------+--------------------+ +| Amount | |tick| | |tick| | ++-------------------+---------------------+--------------------+ +| Blend_method | Partially supported | |minus| | ++-------------------+---------------------+--------------------+ +| Origin | |tick| | |tick| | ++-------------------+---------------------+--------------------+ +| Transformation | Skew not supported | Skew not supported | ++-------------------+---------------------+--------------------+ +| Canvas | |tick| | |tick| | ++-------------------+---------------------+--------------------+ +| Speed | |tick| | |tick| | ++-------------------+---------------------+--------------------+ +| Time Offset | |tick| | |tick| | ++-------------------+---------------------+--------------------+ +| Lock Selection | Not needed | Not needed | ++-------------------+---------------------+--------------------+ +| Outline Grow | |tick| | |tick| | ++-------------------+---------------------+--------------------+ +| Active Layer Name | |tick| | |tick| | ++-------------------+---------------------+--------------------+ + Blend Methods ------------- - The blend methods supported are: Composite, Difference, Multiply, Hard light, Luminance, Saturation, Hue, Color, Darken, Brighten, Overlay, Screen.