Best way to automatically scale object width, but NOT height? AE
- November 21, 2021
- 2 replies
- 2958 views
Hello! Thanks in advance for any help..
I'm making a 'special' bar (Tony Hawk Pro Skater style) and want the slider I've made to decrease over time.
In order to achieve this though I need the slider bar (orange and yellow rectangle shapes, grouped) to only decrease in width, and not decrease the height also - which, using the pickwhip in the way I've done it, is unfortunately happening.
The method I've used to attach the small yellow rectangle (end of the slider) to the slider rectangle itself is by drawing a path with the pen tool (invisible), and using trace path to follow that path up and down the bar. I've then pickwhipped the rectangles (small end one and big ones in group) to the progress bar of the trace path to get the left-to-right progress effect.
Do I need to change the way I've done it? Or does anyone have any ideas for keeping the method I've used, but prevent the rectangle from shrinking vertically? Might I need an expression? One other way I thought of doing it is using a mask, and moving the rectangle positions with keyframes, but I do like the percentage effect that the trace path allows... So would prefer to keep that function if possible.
Very grateful for any tips / help!
