Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Shape Rectangle roundness scaling with size?

  • Shape Rectangle roundness scaling with size?

    Posted by Tristan Summers on November 6, 2018 at 12:47 pm

    Hi
    I am setting the size of a rectangle with SourceRect of a text box, = a control slider for padding.

    When the padding is at zero the Roundedness of the Rectangle is correct, but when this is increased, the roundedness also increases.

    I assume this is an order of operations thing, but normally size changes do not effect roundedness.

    Any tips?

    This is the expression on the rectangle:

    var s1=thisComp.layer(“Line 1”);
    var s2=thisComp.layer(“Line 2”);
    var w = thisComp.layer(“CONTROL”).effect(“LARGEST WIDTH”)(“Slider”)+thisComp.layer(“CONTROL”).effect(“PADDING”)(“Slider”);
    var h =(s1.sourceRectAtTime(-1, true).height)+(s2.sourceRectAtTime(-1,true).height)+thisComp.layer(“CONTROL”).effect(“PADDING”)(“Slider”);
    [w, h]

    Tristan Summers replied 7 years, 6 months ago 1 Member · 1 Reply
  • 1 Reply
  • Tristan Summers

    November 6, 2018 at 2:50 pm

    ignore me. I found a hidden offset paths that was causing it

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