google / AEUX

Editable After Effects layers from Sketch artboards
Apache License 2.0
513 stars 56 forks source link

"The layers must be inside of a frame" and "Unable to execute script line 1. Unterminated string constant." #30

Open Toldbylucas opened 3 years ago

Toldbylucas commented 3 years ago

When trying to import my frame to After Effects I get an error message that "The layers must be inside of a frame" but also sometimes "Unable to execute script line 1. Unterminated string constant."

I've also gotten the import to work but stops importing everything and leaves the composition plain white!

Screenshot 2020-11-10 at 21 21 44

Screenshot 2020-11-10 at 21 22 21

MacOS Catalina — Version 10.15.7 Figma Desktop App release 90.

adamplouff commented 3 years ago

The layers must be inside of a frame Alignment of layers in Ae requires that shapes be inside of an artboard/frame (AEUX needs to know how far from the top left corner a layer is). Are you seeing this for shapes that are inside of an artboard?

Unterminated string constant This typically comes from layer names having characters that confuse the way JSON stores things –typically from special characters or punctuation. It is possible to build in catches for these but we need to know what characters are causing the error. Try selecting smaller groups of layers to track down the problematic layer name text.

Toldbylucas commented 3 years ago

The layers must be inside of a frame Alignment of layers in Ae requires that shapes be inside of an artboard/frame (AEUX needs to know how far from the top left corner a layer is). Are you seeing this for shapes that are inside of an artboard?

Yea, the layers are inside a artboard/frame but doesn't work anyways :/

Unterminated string constant This typically comes from layer names having characters that confuse the way JSON stores things –typically from special characters or punctuation. It is possible to build in catches for these but we need to know what characters are causing the error. Try selecting smaller groups of layers to track down the problematic layer name text.

Do glyphs also include this?

adamplouff commented 3 years ago

I'm not looking at your file so I can't really say, but I've been caught before by a layer being within the bounds of a Frame, while not actually being a child of that frame. Its coordinates are within the edges of the frame but the layer itsef is not within the hierarchy of the frame.

Emojis and glyphs should be ok but something might be causing the bug. Quotes ("") within a layer name originally tripped up the system but there might be another problematic character somewhere.

Toldbylucas commented 3 years ago

Np man! You can see my file here if you want to look further into it! https://www.figma.com/file/dyfuQOM1Js4GmS8QmplhRH/test-motion?node-id=1%3A9

skatekowski commented 3 years ago

I have the same error. "Unterminated string constant" ... My testfile consists a vectorized text and a vector layer. It's inside an artboard. Artboard name is "story", filenames are "logo" and "crt" No matter what I try to do, the error is always the same. I even can't export a single file. Is this plugin still alive?

adamplouff commented 3 years ago

The project is active but is a side project that gets updates as time allows. I’m back on it this week so if you can share your figma file (or something similar that’s also causing problems) I’d be happy to take a look: motiondesign@google.com.

Indeterminate String Constant is usually related to symbols in layer names. But I would like to check if it’s something else.

yellowshoess commented 9 months ago

@adamplouff I have the same problem. Did you guys fix it somehow last time?

vmedium commented 9 months ago

Here's what I would try to make sure you are reducing the complexity of the situation to make sure the base plugin's between apps can talk to each other...

If this works, but your specific file or file doesn't, then it means that there is some level of hierarchy, complexity, possibly a weird character in a layer name, or something else going on that is messing things up. Try to isolate the individual pieces of what you are trying to import 1 piece at a time until you find the offending part or problem.