Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions statics, constants

  • statics, constants

    Posted by Chris Wright on September 29, 2010 at 7:23 pm

    hi everyone, I’m helping a friend and have run into a weird problem.

    –my test data:
    x=toWorld(b); x is [600,600]
    t1=linear(c,0,100,0,600);

    –before
    t1=linear(c,0,100,0,600);

    –after
    t1=linear(c,0,100,0,x[0]); -does’t work???

    but when I put in x[0] instead of 600, it gives a different answer.

    Does linear need constants for value2?
    but AE doesn’t support Constants or even pulic final statics, so what can I do?

    https://technicolorsoftware.hostzi.com/

    Dan Ebberts replied 15 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 29, 2010 at 9:28 pm

    value2 just needs to match the dimensions of value1. It can be a literal, a variable, an array, an element of an array (as in your example). linear() is very flexible.

    My advice would be to make sure c and x[0] are what you think they are.

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy