-
Expression >> Attract a layer to a null object (pos) >> Adding a slider
Hi all,
This is the attract layer to null object position expression
thisComp.layer(“YourNullObjectName”).position;
The trouble is when added it’s an instant snap to the destination null object. Is there anexpression i can add or alter this, so i can highlight a number / strong of the attractor and then expression pick whip this to a slider control? Much in the same way we do to the wiggle expression to use velocity to turn it on and off.
I’m looking to be able to use a 0 to 100% method with keyframes on a slider controller. So i can then add velocity and really chosen how to craft the animation to suit.
recent to the above i have worked out that i can add an expression to a layer object and then use 2 nulls to move using a slider. this one..
linear(pick-whip-slider-value-here, 0, 100, pick-whip-null-1-position-here, pick-whip-null-2-position-here)
the thing is i have hundreds of objects already, so i’m trying to work out if i can get the slider setup into this starting point ( “thisComp.layer(“YourNullObjectName”).position;” ) , so i’d only have the object layer and 1 null, which would be better and more manageable.
love to hear your views and feedback please
Graham