-
Opacity based on NULL position NOT working due to parenting
Hey there – ran into a rather unsavory issue while trying to put together a simple MacOS Dock style animation. I have text layers that are parented to a null – that null has an expression affecting it’s scale, which in turn drives the text and another layer. My issue is that I’m trying to have the opacity of the text layer be driven separately by the separate ‘mouse layer’ null – only issue is that it does not work unless I unparent it from the other null. Any ideas?
This is the expression I’m using to drive the opacity
dMax = thisComp.layer("mouse layer").effect("OpacDistMAX")("Slider");
dMin = thisComp.layer("mouse layer").effect("OpacDistMIN")("Slider");
d = length(thisComp.layer("mouse layer").position,position)-parent.position;
ease(d,dMin,dMax,thisComp.layer("mouse layer").effect("OpacityMAX")("Slider"),thisComp.layer("mouse layer").effect("OpacityMIN")("Slider"))