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?
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:
mSize=mRed.content("Rectangle Path 1").size;
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.