-
Keyframed Slider Control value based on Source Text of another layer
Hi Guys. So I’ve got a real head-scratcher. I’m about 5 draft comps into testing all sorts of different ways of accomplishing this but have struck out…repeatedly!
Here are a couple screengrabs so you know what I’m talking about.
I have a set of precomps that are in ranked order for a given week. I want to animate the change in position from week to week. I’ve been able to do this manually but I’m looking to accomplish it automatically using expressions. Currently I have the y-position of the List Item precomp linked to a slider control created for that particular List Item. So “List Item 01” is linked to “List Item 01 – Control”
xPos = transform.position[0];
yPos = thisComp.layer("List Item 01 - Control").effect("Slider Control")("Slider");
[xPos,yPos]
I then have keyframed the slider control values to the specific y-coordinates I want. I want it to animate from Keyframe 1 to Keyframe 2 so I have Keyframe 1 = 320, Keyframe 2 = 660. I then want to hold for a little so I have Keyframe 3 = 660. Then animate again so Keyframe 4 = 520. Those movements represent the change from week to week. Easy enough so far.Here is the tricky part. I want to generate each individual Slider keyframe value (and thus the y-coordinate for my List Item) from a different Text Layer’s Source Text. So, Slider Keyframe 1 = the source text from “Item 1 – Week 1 Position” and then Slider Keyframe 2 & 3 = the source text from “Item 1 – Week 2 Position” and then Slider Keyframe 4 = the source text from “Item 1 – Week 3 Position” etc.
Does that make sense? Is this even the best way to accomplish this dynamic movement of ranked elements? Any guidance would be greatly appreciated.
Thank you!

