google / AEUX

Editable After Effects layers from Sketch artboards
Apache License 2.0
502 stars 55 forks source link

After Effects error: Unable to call “setValue” #172

Open Madbtr opened 1 year ago

Madbtr commented 1 year ago

Hello! Thanks for creating this great utility, it really helps with my work. Describe the bug Unfortunately, whenever I try to transfer some of my frames from Figma I get this error: Error: After Effects error: Unable to call “setValue” because of parameter 1. Value is undefined. Error on line: 979

I have tried restarting my computer, restarting AE, reinstalling the plugin, detaching instances, and even renaming layers. But it still throws this error.

Expected behavior Transfer frames and create hierarchy of compositions based on grouping while preserving relationships between different elements.

Screenshots

Screenshot 2023-02-06 at 18 26 00

Desktop (please complete the following information):

polyrenn commented 1 year ago

I've been having the exact same issue as well, in my case I found that having layers/rectangles/frames with individual strokes applied breaks the export, I assume no AE support for individual strokes.

Try removing layers with individual strokes and/or using a line instead.

Madbtr commented 1 year ago

@polyrenn Thanks a lot for pointing that out! Really helps to understand this.

So to repeat this bug you must have a shape or a frame, with a custom stroke. For example 0px at the left and bottom and 1px at the top and right sides. Exporting such a frame will cause this error. Hope it will be helpful to others.

ApolloOverflow commented 1 month ago

Hi, I'm trying to use AEUX but I keep getting the error  "After Effects error: Unable to call "setValue" because of parameter 1. Value is undefined. Error on line: 979 " Sadly, in my case, I have no stroke at all in the Frame I want to send to AE. Do you know what can cause this error?  Could it be due to absolute positioning inside the autolayout? Or maybe a large nesting of autolayout in autolayout? I tried to send all the components of this frame separately - they send fine to AE, but not together (on one frame of the first level, it gives an error).

polyrenn commented 1 month ago

Hi, I'm trying to use AEUX but I keep getting the error  "After Effects error: Unable to call "setValue" because of parameter 1. Value is undefined. Error on line: 979 " Sadly, in my case, I have no stroke at all in the Frame I want to send to AE. Do you know what can cause this error?  Could it be due to absolute positioning inside the autolayout? Or maybe a large nesting of autolayout in autolayout? I tried to send all the components of this frame separately - they send fine to AE, but not together (on one frame of the first level, it gives an error).

For prototyping, usually always try the simplest possible configuration. It's possible newer Figma features may break the export. Send your nested frames individually, you may be able to figure out what's causing it to break

Ramielson-Edgar commented 3 weeks ago

I've been having the exact same issue as well, in my case I found that having layers/rectangles/frames with individual strokes applied breaks the export, I assume no AE support for individual strokes.

Try removing layers with individual strokes and/or using a line instead.

Thanks, this work!