Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expression mapping rotation to scale

  • expression mapping rotation to scale

    Posted by Adrian Winter on November 27, 2005 at 1:36 am

    Hi,

    I’m havibng a bit of difficulty trying figure out and expression for an animation I am working on.

    I have set an object to wiggle in scale on the y axis, but I want to set a rotation parameter to the scale value wherein the larger the object is, the faster the object rotates (indefinitiely, on a loop). I was thinking I need to set a loop out expression from 0 to 360 degrees and somehow attatch the speed of the loop to the scale of the object. But I can’t figure out how to do it.

    Any help would be greatly appreciated.

    Thanks in advance,

    -Adrian

    Adrian Winter replied 20 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mylenium

    November 27, 2005 at 12:16 pm

    You need some kind of multiplier that you drive using the scale. Thri this:

    scale_Y=thisLayer.scale[1]; //actual Y scale of object
    max_scale=100; //maximum allowed scale of object
    min_scale=0; //minimum allowed scale of object

    rotation_base=20; //constant basic permanent rotation
    rotation_factor_max=5; //maximum multiplier for rotation
    rotation_factor_min=1; //maximum multiplier for rotation

    rotation_factor=linear(scale_Y,min_scale,max_scale,rotation_factor_min, rotation_factor_max); //remaps scale to derive a actual multiplier

    my_rotation=time*rotation_base*rotation_factor; //actual rotation driven by time

    [my_rotation]

    Cheers

    Mylenium

    [Pour Myl

  • Adrian Winter

    November 29, 2005 at 3:01 pm

    Thanks a lot. I’ll give that one a try. Looks like it may be what i need.

    -AW

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