bodymovin-extension icon indicating copy to clipboard operation
bodymovin-extension copied to clipboard

if Gradient name changed to something other than Gradient Fill1 it is not exported correctly

Open ivg-design opened this issue 3 years ago • 3 comments

I have a project where I name the fills - both regular and gradient with a particular schema so that it can be accessed in a lottie post render. Until now it has been all working as it should, but, with my recent exports, if I change the fill name to the one I need, when exported the gradient does not render correctly....

I always save the file before the export - so its not that issue...

Here's the AEP Project. Gradient Export Problem.aep.zip ..

ivg-design avatar Nov 04 '21 10:11 ivg-design

it was a glitch - it seems that for some unknown reason it is the particular schema name that is giving the issue in this particular file...

ivg-design avatar Nov 04 '21 10:11 ivg-design

I take it back - the gradient render issue is still there... here's another project - I started it from scratch, in a new AEP... it has only one comp and one gradient and I can't render it out correctly - this time no matter what name I give the gradient. LT_G - 2021-11-4 (new project).aep.zip ..

ivg-design avatar Nov 04 '21 13:11 ivg-design

Hi I discovered that bodymovin may not distinguish layers with the same name, or layers end with another layer's name (eg: "a" and "xxxxxxa") when exporting gradients.

In your second project, the plugin seems to confuse the Zero | Rect_Blue layer (the gradient layer) with Rect_Blue layer, regardless of the gradient effect name itself. I try to change the layer's name to something like Rect_Blue | Zero and it works.

zhangbenber avatar Dec 20 '21 07:12 zhangbenber