Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Slider should only controll the x direction

  • Slider should only controll the x direction

    Posted by Pilsner Kanter on December 1, 2012 at 6:58 am

    i have 2 layers –

    one with Expression Slider – and one with a solid with a Split Effect attached.

    I want a slider to control my Split Effect.

    The split Effect is placed under Effects >Distort > Split

    With the expression slider I can control the Split point allright.

    But when i pickwic the slider to Point A – the slider controls
    both the x and y direction.

    What i want is the slider to control only the x direction. The y direction should not move at all.

    How to do that?

    Would be nice if there is a solution – so i can reuse it with other effects that are not
    expression friendly.

    Ashish Gupta replied 13 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Ashish Gupta

    December 1, 2012 at 9:15 am

    You can easily do this by using a keyword value in the expression.

    temp = thisComp.layer("Null 1").effect("Slider Control")("Slider");
    [temp, value[1]]

    or

    u can also assign a static number to y value

    x = thisComp.layer("Null 1").effect("Slider Control")("Slider");
    y=40;
    [x,y];

  • Pilsner Kanter

    December 2, 2012 at 12:48 pm

    Thanks for your solutions Ashish. Unfortunately I am not good enoughf with expressions to make
    use of the eksamples.

    Because what I really wanted as an end result is to be able to use the Split 2 Effect
    as a mouth with Lipsync. I want to use the Split 2 Effect to make a talking mouth.

    But as an intermediate step (before using a soundfile) I want to use an Expression Slider :

    1 Layer with Expression Slider that is used to control the 2 Split options.
    The hight of the Mouth – as when you say Ooohhh – you open up the mouth in y direction (i dont need help with this Layer. I can get it to work with just Pickwicking it to the Expression Slider.

    Now – on a second Layer I want another Expression Slider that control the With of the mouth – as when you are smiling – the mouth is wide but not high like when you say Ooohhh.

    My problem is with the second Layer. I want Point A to move at the same time as Point B – but the points should move either away from each other or nearer each other – depending on whatever I pull the Expression Slider to the left side or to the right side. Like a real mouth would move when talking.

    Can this be done with Expressions?

    The problem is that at the moment Point A and Point B moves in the same direction when I just Pickwic them to the Expression Slider .

    Maybee someone can come up with a better idea to utilize the Split 2 Effect to make a talking mouth.

    I know of the other different methods to make mouth Lipsync – but really I want to first see how far I can come with using Expressions and the Split 2 Effect as it give some other nice possibilities.

  • Ashish Gupta

    December 2, 2012 at 5:24 pm

    I think This should solve your problem..

    Use this for point A :

    x= value[0] - thisComp.layer("Null 2").effect("Slider Control")("Slider");
    y = value[1];
    [x,y]

    And this for point B :

    x= value[0] + thisComp.layer("Null 2").effect("Slider Control")("Slider");
    y = value[1];
    [x,y]

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