-
Controlling an animation/expression with markers
This is my first deep dive into expressions. I’m trying to create a Rig for an election Graphic bar Graph (for the upandcoming German election, thats why some of my expresion controllers are in German). So far so good, in Comp 6 the percentage result can be entered in the first expression slider Erg.CDU/CSU, this controls the size of the 1st bar(“balken 1-1”). The key frames on the scale go from o to 100%. The expression on the scale
x= transform.scale[0]+thisComp.layer("Graph Controler").effect("Balken Breite")("Slider");
y = transform.scale[1]*thisComp.layer("Graph Controler").effect("1. Balken")("Layer").transform.scale[1]/50;
z = transform.scale[2]+thisComp.layer("Graph Controler").effect("Balken Tiefe")("Slider");
[x,y,z];gets the value correctly but now I would like to trigger the keyframes on “balken 1-1” with a marker in Comp 7
and I’m really stuck I need to keep the original expression which controls the y scale of the bar. At first I thought I could use an if expression but thats about as far as I got. Hope I’ve made myself undersandable! Any help would be much appreciated. And when I get it sorted out I’ll share the project with anyone needing election graphics. Many thanks in advance,nick
x= transform.scale[0]+thisComp.layer("Graph Controler").effect("Balken Breite")("Slider");
y = transform.scale[1]*thisComp.layer("Graph Controler").effect("1. Balken")("Layer").transform.scale[1]/50;
z = transform.scale[2]+thisComp.layer("Graph Controler").effect("Balken Tiefe")("Slider");
[x,y,z];
