AE If & Expression writing help needed
I wonder if I could pick some expert brains here, as I am coming up blank on searches and youtube videos. Its about Expressions within After Effects
The scenario.
I am trying to automate some penalty graphics – so there could be 3 styles – Not taken, Missed or Scored, and I have 3 graphics for each option.
I want to use Checkboxes (as cant find another way of comparing text fields). Checkbox will be ‘HomeFirst’ (so the pc knows where to put individual penalties, and then about 30 ‘Pen Scored’ checkbox, each representing a Penalty Kick (the HomeFirst checkbox will allow us to decide if Pens 1,3,5 etc are for the home team or away team).
So I thought I could use an expression as follows
(for Pen 1 graphic on home side)
If HomeFirst = 1 AND Pen1 = 1 then Opacity 100% on HomePen1Score Graphic
If HomeFirst = 1 AND Pen1 = 0 then Opacity 100% on HomePen1Miss Graphic
That would mean if HomeFirst was 0, then Pen1 would be blank (ie not yet taken)
If HomeFirst = 0 AND Pen1 = 1 then Opacity 100% on AwayPen1Score Graphic
If HomeFirst = 0 AND Pen1 = 0 then Opacity 100% on AwayPen1Miss Graphic
That would mean if HomeFirst was 1, then AwayPen1 would be blank (ie not yet taken)
Each Composition will have 10 graphic locations (5 home & 5 away) sets of 3 graphics at each location, dictate by the rules above
I would also have individual compositions for each pen (as need to produce a different graphic after each penalty taken)
But I cant seem to write an AE expression that calls the checkbox (will be in another composition)
Any suggestions on what the expression would look like?
