Skip to main content
S_ A
Inspiring
August 26, 2024
Question

expression is not working

  • August 26, 2024
  • 2 replies
  • 652 views

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 has been closed for replies.

2 replies

Dan Ebberts
Community Expert
Community Expert
August 26, 2024

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

L = thisComp.layer("Magnifier");
fromComp(L.toComp(L.anchorPoint))
S_ A
S_ AAuthor
Inspiring
August 27, 2024

Thank you so much. Finally I can do it.

Legend
August 26, 2024

Try this expression:

m = thisComp.layer("magnifying glass");
m.toComp(m.anchorPoint);
S_ A
S_ AAuthor
Inspiring
August 27, 2024

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

Legend
August 27, 2024

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! 😂