-
using both source text and tracking / character size expressions
Okay, trying to get over this last hurdle, but have hit a road block.
I have a text layer that has tracking and character size expressions linked to a slider (Control) in the main comp.
tracking = thisComp.layer(“Control”).effect(“Tracking”)(“Slider”);
fontSize = thisComp.layer(“Control”).effect(“Font Size”)(“Slider”);
newStyle = style.setTracking(tracking);
newStyle.setFontSize(fontSize);(thanks to Dan Ebberts for helping me with that)
This works great, but I also want to have the source text driven by another text layer (Text 2). (usually I would do this with a quickwhip).
For some reason, I’m not able to utilize expressions for both the source text and tracking/character size
If I have “sourceText = thisComp.layer(“Text 2″).text.sourceText” at the top of the expression, it will read tracking/character size fine, but not update source text.
If I have it below the tracking/character expression, it will update the source text but not tracking/ character size.
I’m a novice in working with expressions, but this seems like it would be a relatively easy task, but I’ve definitely hit a wall.
Any assistance is greatly appreciated.
Thanks