Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Link objects to autoscaling boxes

New Here ,
Apr 16, 2021 Apr 16, 2021

Hey! so I have the following problem: I basically want to customize an autoscaling text box, with the end goal of making a mogrt-file for overlaying text I can use in different videos.

I want the textbox to look like this in the end:

Carolin5ED5_1-1618572433663.pngexpand image

 

Someone in this forum proposed that the easiest way to achieve my goal is to just create the text box and basically "glue on" the frayed ends.

Carolin5ED5_0-1618572230341.pngexpand image

 

Now, I'm not familiar with expressions at all, but I figured out how to make the text box, but I failed at making the frayed ends move just as the text box does (or scale up and down in height with the text box). I feel like there is an obvious and easy expression for it and I'm just too new to the subject to know about it.

I would greatly appreciate a nudge in the right direction, I've been at this for hours now and it feels like I am just barely there...

TOPICS
Expressions , How to
115
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 16, 2021 Apr 16, 2021
LATEST

Pseudo-code:

 

position+(width+offset)* scale

 

bLay=thisComp.layer("Box");
bWid=bLay.width;
bSca=bLay.transform.scale[0]/100;

mOff=250;

thisLayer.transform.position[0]+(bWid+mOff)*bSca; 

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines