Skip to main content
S_ A
Inspiring
Aug 26, 2024 8:39 PM UTC
Question

expression is not working

Hi,

 

I am learning expressions. I did everythng verbetim mentioned in the PDF am following, but am not getting what am supposed to. My expression never works and it makes me upset. I must have done something wrong. Please guide me.

 

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Dan Ebberts
Community Expert
Community Expert
Aug 26, 2024 9:47 PM UTC

The expression in your tutorial is incorrect. It should be more like this:

L = thisComp.layer("Magnifier");
fromComp(L.toComp(L.anchorPoint))
Translate
S_ A
S_ AAuthor
Inspiring
Aug 27, 2024 7:32 AM UTC

Thank you so much. Finally I can do it.

Translate
Legend
Aug 26, 2024 9:17 PM UTC

Try this expression:

m = thisComp.layer("magnifying glass");
m.toComp(m.anchorPoint);
Translate
S_ A
S_ AAuthor
Inspiring
Aug 27, 2024 7:28 AM UTC

😮 😮 Thank you so much. It works. FINALLY!

Translate
Legend
Aug 27, 2024 7:43 AM UTC

Do you know that, your screenshot with a line of code written in a book brought back 40-year-old traumas for me.
When I was about 6 years old in the 80s, my father bought a Commodore 64, but no games,
just books that contained the source code for a few games that we had to copy out.
There was no save/memory, so every day for 3 or 4 years,
I mindlessly copied pages and pages of code just to be able to play.
What a nightmare when I think back on it! 😂

Translate