Forum Replies Created

Page 1 of 8
  • Xinlai Ni

    December 16, 2009 at 10:21 pm in reply to: scaling on a slider

    try this instead:
    value + wiggle(val1, val2)

    because wiggle returns a vector of the same dimension as the property it applies to.

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    December 8, 2009 at 12:30 am in reply to: valueAtTime property gives “undefined” error

    try valueAtTime(…)[0] instead.
    BTW, anchorPoint.speed is more general (you don’t have to write the frame rate).

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    December 7, 2009 at 2:01 am in reply to: Ticking Animation

    sounds like similar issue as the one with the title “animating position at fixed intervals with fixed values”. please
    Look a few threads below

  • Xinlai Ni

    December 6, 2009 at 2:52 am in reply to: Scripting Question, is my idea possible?

    This is exactly what a script should do, take a look at the object model from the scripting guide, especially project, text layer (text source property) and output module/ render item.

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    December 2, 2009 at 1:45 am in reply to: Target a 3d layer to another?

    Luckily you don’t need sin/cos to do this, the layer’s toComp method can be of great help, for similar solutions, please take a look at this post:
    https://forums.creativecow.net/readpost/2/967175

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    December 1, 2009 at 4:44 pm in reply to: animating position at fixed intervals with fixed values

    Try this:
    timeToClimb = 1;
    timeToStay = 2;
    initialY = 243;
    positionY = initialY - 5 * Math.floor(time / (timeToClimb + timeToStay));
    t = time % (timeToClimb + timeToStay);
    [432, linear(t, 0, timeToClimb, positionY, positionY - 5)]

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    November 17, 2009 at 6:02 pm in reply to: Circular Motion Expression?

    radius = yourRadius;
    startAngle = degreesToRadians(yourStartAngle); // yourStartAngle in degrees
    T = yourTimeToCompleteOneRevolution; // in seconds
    angularSpeed = 2 * 3.1415926 / T;
    xt = yourCenterX + radius * Math.cos(angularSpeed * time + startAngle);
    yt = yourCenterY + radius * Math.sin(angularSpeed * time + startAngle);
    [xt, yt]

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    November 16, 2009 at 11:03 pm in reply to: Linking a text parameter to a slider

    Javascript supports implicit conversion from number to string, so
    "foo" + (Math.floor(thisComp.layer("control").effect("Version Slider")(1)))
    gives you “foo1” if your slider’s value is >= 1 but < 2, etc. Xinlai Ni Software Engineer, Google Inc.

  • Xinlai Ni

    November 16, 2009 at 2:25 am in reply to: Is it possible to use the current value of an expression

    Whether using expression or not, position[0] always tells you the x position.

    Xinlai Ni
    Software Engineer, Google Inc.

  • Xinlai Ni

    November 15, 2009 at 4:22 pm in reply to: Expression Error!!

    Is this because you have a ([… )] mismatch in the rgtToHsl line?

    Xinlai Ni
    Software Engineer, Google Inc.

Page 1 of 8

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