Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression problem

  • expression problem

    Posted by Stephen Hockman on November 9, 2005 at 9:36 pm

    i alt clicked the size keyframe button and i typed in random(100,120) to randomize my size. When i hit enter i get the following error: After effects warning: expression result must be of dimension 2, not 1, error occured at line 0, expression disabled.

    whats up? how i fix it>

    Colin Braley replied 19 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Colin Braley

    November 9, 2005 at 11:02 pm

    Well scale is a two dimensional property, meaning the first number is X scale and then Y scale. When you type random(100, 120) you are only specifying the X scale so after effects is telling you it needs a number for Y scale too. You might want to try one of hese expressions:

    val = random(100, 120);
    [val, val]

    //or

    [random(100, 120), random(100,120)]

    for this kind of basic expression stuff you can usually find the answer on Dan Ebberts’ site http://www.motionscript.com

    ~Colin

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