ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Shape Rectangle roundness scaling with size?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tristan Summers
Shape Rectangle roundness scaling with size?
on Nov 6, 2018 at 12:47:20 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]


Return to posts index

Tristan Summers
Re: Shape Rectangle roundness scaling with size?
on Nov 6, 2018 at 2:50:42 pm

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]