Jump to content
Sign in to follow this  
space pumpkin

After effects Slider controle?

Recommended Posts

Hi everyone okay I need soem help, as I am clueless in AE expression

 

So...

 

I have created a slider controle in a Null file, which I would like it to controle the Y position of my character ( check picture) running, and the scale his shadow.

 

I have managed the Y position ( don't know how) but the scale of the shadow layer seems tricky.

 

As you can see I can control the Y scale

 

 

yAdj = thisComp.layer("Null 1").effect("Slider Control")("Slider");

value + [6,Math.max(yAdj,1)]

 

but not the X scale.

 

How can I do this??

 

 

here are some pictures of the matter I am talking about

 

 

http://s163.photobucket.com/user/smokyami/media/Screenshot2013-04-18at150901.png.html

 

http://s163.photobucket.com/user/smokyami/media/Screenshot2013-04-18at150850.png.html

 

http://s163.photobucket.com/user/smokyami/media/Screenshot2013-04-18at124619.png.html

 

 

 

Thanks.

 

 

Share this post


Link to post
Share on other sites

your question is confusing, What do you want to do with your xScale?

 

In your expression, the scale X is not linked to your expression Slider. You just add 6 to it's current value.

I don't know what you really want to do with xScale.

But the best way to work with 2 parameters (Array) in after effects will be to split them in 2 different variable

xAdj=value[0]; /// value[0] is the first parameter so ScaleX;

yAdj=value[1]; /// value[1] is the second parameter so ScaleY;

[xAdj,yAdj];

 

It's just more clear.

 

your expression will look like this

 

 

xAdj=value[0]+6;

yAdj = thisComp.layer("Null 1").effect("Slider Control")("Slider");

yResult=value[1]+Math.max(yAdj,1);

[xAdj,yResult]

 

Guessing what you want is your xScale to be your yScale + 6. You need to first set yScale and then pass it to xScale, something like this

 

 

 

yAdj = thisComp.layer("Null 1").effect("Slider Control")("Slider");

yResult=value[1]+Math.max(yAdj,1);

[yResult+6,yResult]

Share this post


Link to post
Share on other sites

Cheers Wysee

 

 

However, I am shaving a little problem

I have a character running see example below.

 

 

">http://i163.photobucket.com/albums/t283/smokyami/Sc3movffvideo.mp4]th_Sc3movffvideo.jpg

 

I would like the Slider Control to control :

The Y position of character's body (which is working ) and the scale of my shadow layer.

So when UP the Shadow at 70% and DOWN at 100 %

Is it possible ?

Cheers

Edited by space pumpkin

Share this post


Link to post
Share on other sites

link your scale ti you Y posisition with a linear function to clamp your Y position to 70 and 100 for the scale like this

 

temp = thisComp.layer("yourSolid").transform.position[1];

temp2=linear(temp,0,1080,70,100);

[temp2, temp2]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...