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

Link objects to autoscaling boxes

New Here ,
Apr 16, 2021 Apr 16, 2021

Copy link to clipboard

Copied

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.png

 

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.png

 

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

Views

109

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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