Generating Animation Keypaths when layers have "." in their name #2457
daniel-e-gonzalez
started this conversation in
General
Replies: 1 comment 2 replies
-
We could make it so |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a lottie animation that has layers that have
.
in their name. This is causing issues with being able to generateAnimationKeypaths
from anallHierarchyKeypaths
call on myLottieAnimationView
since the defaultAnimationKeypath
constructor delimits by.
. The generatedAnimationKeypath
has an entry of "" and then another entry for "myLayerName". It really should have a single entry for ".myLayerName".I am able to work around this by using
AnimationKeypath(keys: myKeys)
(wheremyKeys
is generated using some workaround code), but I would like to instead be able to just useAnimationKeypath(keypath: keypath)
. Can this be fixed?Which Version of Lottie are you using?
Lottie 4.5.0
Expected Behavior
AnimationKeypath(keypath: keypath)
returns the correct keypaths when layers have.
in the name.Actual Behavior
There is a blank entry and an incorrectly named entry in the keypath.
Beta Was this translation helpful? Give feedback.
All reactions