So i guess what you are saying is that you want to use wiggle plus the position expression for the coloured rectangles. You can not have two values for an expression. After effects just takes the last value. So the first thing that came to mind was to add the wiggle to the expression on the previous line. Did that, but it moved the shape out of my screen. Wondering why it did that, i tried figuring how wiggle works. So aparently wiggle takes the raw value of the position and plays with them. Just substract the position value at the end. It seems to work. So the whole expression would be this.
t = thisComp.layer("my_text");
tRect = t.sourceRectAtTime(time,false);
tUL = t.toComp([tRect.left,tRect.top]);
tLR = t.toComp([tRect.left+tRect.width,tRect.top+tRect.height]);
tCenter = (tUL + tLR)/2
myRect = sourceRectAtTime(time,false);
myUL = toComp([myRect.left,myRect.top]);
myLR = toComp([myRect.left+myRect.width,myRect.top+myRect.height]);
myCenter = (myUL + myLR)/2
delta = myCenter - tCenter;
value - delta+wiggle(10, thisComp.layer("Slider 1").effect("Slider Control")("Slider"))-transform.position
Andrei
My Envato portfolio.