FORUMS: list search recent posts

Controlling the z Anchor Point with a check box

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ajay Nanathu
Controlling the z Anchor Point with a check box
on Jun 23, 2016 at 8:11:24 pm

Hi
I am trying to control the Z Anchor Point With a Check Box switch between 2 Slider Controls.
Here is the Expression i have come up with but not working correctly. If you put it on a single coordinates control it works fine but adding it into the z control expression brakes it.


Thank you in advance

Ajay

[transform.anchorPoint[0], transform.anchorPoint[1], if (effect("Expression Control")("Checkbox")==1) {effect("Cover Anchor Point")("Slider")} else {effect("Cover Anchor Point 2")("Slider")}]


Return to posts index

Dan Ebberts
Re: Controlling the z Anchor Point with a check box
on Jun 23, 2016 at 9:25:10 pm

I haven't tested, but try it this way:

if (effect("Expression Control")("Checkbox").value==1) {
z = effect("Cover Anchor Point")("Slider");
} else {
z = effect("Cover Anchor Point 2")("Slider");
}
[value[0],value[1],z]


Dan



Return to posts index

Ajay Nanathu
Re: Controlling the z Anchor Point with a check box
on Jun 24, 2016 at 3:12:35 am

Hi
Thanks That worked perfectly.
I appreciate the time and effort you put into helping us learn.

Ajay


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]