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

Bargraph 2 Shape animation

New Here ,
Apr 21, 2022 Apr 21, 2022

Copy link to clipboard

Copied

I have a bar graph and I am trying to animate it. So the red shape scales larger from left to right and I have another shape light pink that I want to stay the same size but move with the red shape as it scales up. Any suggestions?

I attached an image of the bar graph. 

 

Thanks

TOPICS
How to

Views

124

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 21, 2022 Apr 21, 2022

Copy link to clipboard

Copied

Simply connect the X position of the pink square to the X size of the red square or multiply it with the scale. Something like so:

 

mRed=content("Rectangle 1");

mSize=mRed.content("Rectangle Path 1").size[0];

mScale=mRed.transform.scale[0];

 

//size

X=mSize

//scale

X=mSize*mScale/100;

 

[X,value[1]]

 

This basic code assumes everything is properly alligned and zeroed out. if that's not the case, extra bits may be needed to account for position offsets and such. Code not tested, typed up on the fly away from AE.

 

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
New Here ,
Apr 21, 2022 Apr 21, 2022

Copy link to clipboard

Copied

How would I connect it? I apologize I still a little new to AE

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
New Here ,
Apr 21, 2022 Apr 21, 2022

Copy link to clipboard

Copied

Any suggestions or help, trying to figure this out. Thanks

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
LEGEND ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

LATEST

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