Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions parent/child scaling

  • parent/child scaling

    Posted by Duane Walters on October 4, 2015 at 4:10 pm

    I can easily set up the parent/child relationship with position and scaling, and that works great.

    What I’m trying to achieve is this:

    2 circles
    parent is black and in front
    child is blue and behind
    I want the child to take on the position and scaling properties of the parent, but when the parent is small, I want the child to be smaller and unseen.

    The parent is attached to a random slider that changes, which is the expression I included. I honestly don’t know if this makes any sense in writing.

    seedRandom(thisComp.layer("controller").effect("Random Seed")("Slider")+index,true)
    x=wiggle(0.05,thisComp.layer("controller").effect("Amplitude")("Slider"));
    y=x/10;
    value+[y[0],y[0]]

    Kalleheikki Kannisto replied 10 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    October 5, 2015 at 4:54 pm

    Essentially you want to do the child scaling by an expression that shrinks it more than the parent.

    If the slider values change in the positive range, you could do it like this:

    s=Math.max(0,[YOUR SCALING PARENTING OR CALCULATION HERE]-25);
    [s,s]

    wherein the “-25” is the scale at which you want the smaller circle to be 0, i.e. when the larger circle is at 25%, the smaller one will be at 0%. You can change this value to your liking.

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