Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adding value to scale only affects X, not Y? Why?

Enthusiast ,
Mar 23, 2009 Mar 23, 2009
So I I'm using Sound Keys to drive the scale of another layer. However, it's only modifying the X scale, not X & Y.

What's wrong with this expression:

transform.scale+thisComp.layer("solid").effect("Sound Keys")("Output 1")

also tried these, but got an syntax error:
s = transform.scale+thisComp.layer("solid").effect("Sound Keys")("Output 1");
[s[0],s[1]]

and
s = transform.scale+thisComp.layer("solid").effect("Sound Keys")("Output 1");
[s,s]
TOPICS
Expressions
2.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2009 Mar 23, 2009
You were all around it. Try this:

s = thisComp.layer("solid").effect("Sound Keys")("Output 1");
transform.scale + [s,s]

Dan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 23, 2009 Mar 23, 2009
LATEST
ARGH! Thanks Dan! I never can remember that one can add arrays.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines