airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
30.6k stars 2.88k forks source link

Uncaught TypeError: Cannot read property 'length' of undefined #1138

Open mircwebsolutions opened 6 years ago

mircwebsolutions commented 6 years ago

I am using latest version of bodymovin AE plugin and also latest lottie player.

I am getting this error after rendering an animation (see files attached below).

Uncaught TypeError: Cannot read property 'length' of undefined at SVGCompElement.BaseRenderer.buildAllItems (demo.html:28) at SVGCompElement.ICompElement.initElement (demo.html:29) at new SVGCompElement (demo.html:25) at SVGCompElement.SVGRenderer.createComp (demo.html:28) at SVGCompElement.BaseRenderer.createItem (demo.html:28) at SVGCompElement.SVGRenderer.buildItem (demo.html:28) at SVGCompElement.BaseRenderer.buildAllItems (demo.html:28) at SVGCompElement.ICompElement.initElement (demo.html:29) at new SVGCompElement (demo.html:25) at SVGRenderer.createComp (demo.html:28)

AE project https://drive.google.com/open?id=15SpDmHwhjPn3Qj_1TwE4OwvGmA_vfKgT exported animation https://drive.google.com/open?id=1Av5bO3fl5AvjbdZKV4Uiv1nAbdE9EcFj

Those are my rendering settings and the composition to export is called main_2

capture

Thank you, Raducanu Theodor

mircwebsolutions commented 6 years ago

I manage to get the animation working only with this settings but some of layers does not show up. It have something to do with Hidden layers settings and split comps . When i disable Hidden layers or split comps the errors appear.

settings-animation