Slider Control in After Effects

Posted by on Nov 24, 2009 in After Effects, code, motion graphics, tips | One Comment

You can link the Slider Control expression control to properties in After Effects to create a gui slider interface with a key-able value. An easy way to do this is to do the following.

  1. Make a null layer. Apply the Slider Control expression control effect to the null layer.
  2. Create an expression by option/alt clicking on the “stopwatch” of the property.
  3. Use the pick whip to connect the property to the Slider Control.

You can also link individual values of properties, the x position for example, to the slider if you highlight that value and then connect via the pick whip. You must be able to access the individual arrayed values of the property, so write your expression as below, for example:

[position[0],position[1]]

Highlight the value “position[1]” then use the pick whip to connect to the Slide Control. You will get this new expression as a result (if your null is named controllerNull):

[position[0],thisComp.layer("controllerNull"). effect("Slider Control")("Slider")]

Download example scene

The following expression is used to link a series layers to the slider. The “index” value is used to echo the layer number, here the z position of a 3d layer. The slider control is used as a multiplier on that value. The result is an accordion like effect.

[position[0],position[1], index*thisComp.layer("controllerNull").effect("Slider Control")("Slider")]

Email this to someoneTweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInShare on StumbleUponShare on RedditDigg this

1 Comment

  1. Dr. URL
    April 10, 2012

    The download example scene button isn’t working and cannot see the example.

Leave a Reply