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

Bodymovin unable to rexport AVD XML file #2785

Open ryleii opened 2 years ago

ryleii commented 2 years ago

Hey there, I've been encountering issues exporting XML file through bodymovin in After Effects

Yesterday I was testing out XML exportation through bodymovin. I tested exportation on both a past animation file and downloaded google AE file. Initially, I tried to export the AVD XML file (standard included)

Screenshot 2022-05-24 at 4 38 15 PM

got the error: "is Preferences > Scripting & Expressions > Allow Scripts to Write Files and Access Network enabled?"

Screenshot 2022-05-24 at 4 28 03 PM

I was quite confused as the settings is ticked as seen here

Screenshot 2022-05-24 at 4 41 31 PM

After multiple failed attempts, it was able to export it. I tried saving the settings in bodymovin multiple times, I restarted After Effects, I ticked the "Enable Javascript Debugger".

Today I wanted to export another version of the same file and for some reason I keep getting the same error as yesterday: "is Preferences > Scripting & Expressions > Allow Scripts to Write Files and Access Network enabled?"

Screenshot 2022-05-24 at 4 28 03 PM

I tried re-exporting the same downloaded google file (which somehow worked yesterday) but received the same error.

I've since tried:

I don't understand what's happening, is there a hidden permission not assessed? if so why did it work yesterday and not today? could a code be broken? I'm not sure where to check

Here's the google AE file you can test.

news_avd_v02.aep.zip

bodymovin commented 2 years ago

Hi, that error is a sort of catch all if it's an unknown error that the exporter doesn't understand. But it might be related to something different. I tried exporting the .aep you shared and I had no issues exporting it, even tried it multiple times. Do you get the same error if you only try to export the regular json file without ticking the avd format?

ryleii commented 2 years ago

Hi there,

oops, accidentally closed the ticket.

Oh yes, I wanted to ask if you know how i could check the script ran when I click render for bodymovin and see if I could find the error line and post it here (not sure if this is under AE or Bodymovin).

I think the strange part of this issue is that the JSON file will still be rendered out properly, it only affects the XML file. I did 2 tests on this, exporting JSON only and exporting JSON + XML. In both cases only the JSON renders. I don't get the error if I export JSON only.

I'm planning to ask others to render the XML on their AE, and I'm guessing it shouldn't encounter this. But if that's the case, I'm not sure how to proceed for myself (since I've tried re-installing AE and Bodymovin)

bodymovin commented 2 years ago

These instructions should help to see what is going on https://github.com/bodymovin/bodymovin-extension/issues/112

ryleii commented 2 years ago

thanks for the link to the ticket! I've read through the post but am not sure how to start. Do I have to download Devtools? to access this window?

bodymovin commented 2 years ago

you need to open Chrome dev tools in a chrome browser. But if you're not familiar with web development, it might be difficult to do.

Ravikaanty commented 2 years ago

Hey, it's not able to export AVD. I am getting the same error.

Waihong2022 commented 2 years ago

I'm having the same issue =[

jonnocohen commented 2 years ago

Just found this issue while searching for solutions for a similar issue I had. In case it's useful to anyone, my issue turned out to be a parametric ellipse with Trim Paths. Using 'Convert to Bezier path' resolved it and everything rendered just fine.

That's the ;tldr, seems parametric shapes can cause problems with Lottie export. Here's a more detailed description of my scenario and the solution I found:

Hope this is useful to anyone else who runs into this issue.

daddoo2005 commented 1 year ago

Hi all, I found the cause of that, and it is, as usual, super silly: The exported JSON and XML names should not have spaces and capital letters!!!!!

That's all Have fun

Raptorrr007 commented 4 months ago

heyy,

Same problem I had but these capitalized letter didn't work for me. Possibly tried everything in the world. What finally worked was duplicating the comp in AE, and then playing around with the settings.

I had a lot of pngs, so I had to trial and error, every setting that mentioned images or png. Finally after a couple versions that only rendered the skeleton, one worked.

Hopefully this helps someone.