Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › smooth script withe slider

  • smooth script withe slider

    Posted by Kees Mannekeman on January 30, 2014 at 1:38 pm

    Hello,
    I have some tracking keyframes on a layer that I like to smooth but I would also like to have some control over it. At some places a lot of smoothing and other places none of a litle.
    I tried to do this with the script (smooth(1,2) and link a slider to the “1” and the “2”. (number 1 and 2 are just random number for example). How ever this doesnt work.
    (I am not a genius with scripting but with wiggle it works so why not here)
    can anybody help me out?
    thanks in advance!
    Tuli

    Kees Mannekeman replied 12 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Roland R. kahlenberg

    January 30, 2014 at 6:28 pm

    The ‘smooth’ Expression method samples a range in time to do its thing. I too find it difficult to control it precisely. I suggest you do ne of the following –
    1) apply an Expression Point Control to the layer containing the tracking data. set its value to [0,0]

    2) create an Expression link from tracking data to the Point Control

    3) Use this Expression as the script –
    value+ExpressionPointControl; where Point Control is the Expression. Use the pick-whip so that the correct script is applied by AE

    4) Keyframe the Point Control value to achieve your smoothing effect

    Alternatively, or in conjunction with the above technique, you can start things off by eyeballing the tracking data’s motion path and make manual adjustments to smooth the path.

    HTH
    RoRK

    Intensive mocha & AE Training in Singapore and Other Dangerous Locations

    Imagineer Systems (mocha) Certified Instructor
    & Adobe After Effects CS6 ACE/ACI

  • Kees Mannekeman

    February 3, 2014 at 1:02 pm

    Thanks, Roland!
    I got it working. Its not like you instructed but it gave me a hint for the right direction.

    smooth(width = effect(“Point Control”)(“Point”)[0], samples = effect(“Point Control”)(“Point”)[1], t = time)

    cheers,

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy