Thread View: adobe.after.effects.expressions
3 messages
3 total messages
Started by Navarro_Parker
Mon, 23 Mar 2009 17:10
Adding value to scale only affects X, not Y? Why?
Author: Navarro_Parker
Date: Mon, 23 Mar 2009 17:10
Date: Mon, 23 Mar 2009 17:10
13 lines
1038 bytes
1038 bytes
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]
Re: Adding value to scale only affects X, not Y? Why?
Author: Dan_Ebberts
Date: Mon, 23 Mar 2009 18:51
Date: Mon, 23 Mar 2009 18:51
6 lines
737 bytes
737 bytes
You were all around it. Try this:
s = thisComp.layer("solid").effect("Sound Keys")("Output 1");
transform.scale + [s,s]
Dan
Re: Adding value to scale only affects X, not Y? Why?
Author: Navarro_Parker
Date: Mon, 23 Mar 2009 19:08
Date: Mon, 23 Mar 2009 19:08
1 lines
673 bytes
673 bytes
ARGH! Thanks Dan! I never can remember that one can add arrays.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads