1614 posts I create things I wish existed
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Won a competition
  • Made it to the Authors' Hall of Fame
+8 more
cyzer says

Ok now I remember someone asked this before But I have tried and it didn’t work for me.

I have created a global control layer, on this layer I am placing all the effects. Now…

(Important) How to make a Check box invert a color. Lets say I have > Channel > Invert effect and I want it to be either 0 or 100 when box is Checked or UnChecked.

(Important) How to make a Slider Control not to go above 100?? I know the effect value stays max 100 (if it has only 100), but the slider of that expression linked Slider Control goes up anyway.

(Not so important) Is there any possible way to select blending mode of certain expression linked layer in the effects window ? I know there is expression called Layer Control. I am almost certain I can’t.. but maybe… and one more thing. Can I expression link blending modes ? Like if I select one layer to be Overlay so that another layer does it automaticaly..

1614 posts I create things I wish existed
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Won a competition
  • Made it to the Authors' Hall of Fame
+8 more
cyzer says

Maybe there should be Felt’s phone number in bold on the Videohive web heading? He is the savior of expression world.

590 posts
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+9 more
flashato says

Ok now I remember someone asked this before But I have tried and it didn’t work for me.

I have created a global control layer, on this layer I am placing all the effects. Now…

(Important) How to make a Slider Control not to go above 100?? I know the effect value stays max 100 (if it has only 100), but the slider of that expression linked Slider Control goes up anyway.

(Not so important) Is there any possible way to select blending mode of certain expression linked layer in the effects window ? I know there is expression called Layer Control. I am almost certain I can’t.. but maybe… and one more thing. Can I expression link blending modes ? Like if I select one layer to be Overlay so that another layer does it automaticaly..

the slider one is easy.Right click edit value.
IMHO the blending stuff you can`t do that, but let s wait the Guru… :)

2176 posts aspire to create - create to inspire
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+8 more
Creattive says

(Important) How to make a Check box invert a color. Lets say I have > Channel > Invert effect and I want it to be either 0 or 100 when box is Checked or UnChecked.

You need to use an if-statement for that:

if(pickwhip with checkbox == true) 0; else 100;

of course you don’t typ the pickwhip, you do it ;)

744 posts
  • Has sold $10,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
+3 more
GrizzleFX says

I think i know how to limit the value to 100. You use clamp[min,a,max] and then set a equal to your slider. I’m pretty bad with expressions but that’s the best i can do, definitley wait for the expression king.

5084 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Helps us moderate the forums
+11 more
felt_tips Volunteer moderator says

I think i know how to limit the value to 100. You use clamp[min,a,max] and then set a equal to your slider. I’m pretty bad with expressions but that’s the best i can do, definitley wait for the expression king.

Nearly, but not quite. :-)

clamp(value, 0,100); // round brackets, number to clamp, min, max

Note: the keyword “value” refers to the property’s own pre-expression value, so you can actually use that line, as written, on a slider to clamp it between 0 and 100

@Flash: IIRC , the right click and edit value only calibrates the slider that you see in the Effect Controls window. It doesn’t actually clamp the value.

5084 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Helps us moderate the forums
+11 more
felt_tips Volunteer moderator says


(Important) How to make a Check box invert a color. Lets say I have > Channel > Invert effect and I want it to be either 0 or 100 when box is Checked or UnChecked.

You need to use an if-statement for that:

if(pickwhip with checkbox == true) 0; else 100;

of course you don’t typ the pickwhip, you do it ;)

You can do it with a ternary too… it’s a bit smaller:

theChkBx = layer("global controller").effect("Color Checkbox Ctrl")(1).value;
theChkBx ? 0 :100;

I always like to separate long property references into their own variables (that’s what the first line is). It’s good practice, especially once your expressions start to get longer.

I usually explicitly include the “value” on the end of a property reference. After Effects usually defaults to using the value (instead of the object reference of the property). But in certain situations it doesn’t, so it pays to be explicit.

5084 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Helps us moderate the forums
+11 more
felt_tips Volunteer moderator says

(Not so important) Is there any possible way to select blending mode of certain expression linked layer in the effects window ? I know there is expression called Layer Control. I am almost certain I can’t.. but maybe… and one more thing. Can I expression link blending modes ? Like if I select one layer to be Overlay so that another layer does it automaticaly..

Blending modes can neither be read nor set with expressions.

You can do it with scripting, but that’s a whole other story.

5084 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Helps us moderate the forums
+11 more
felt_tips Volunteer moderator says

Maybe there should be Felt’s phone number in bold on the Videohive web heading? He is the savior of expression world.

It’s an 0800 number. Calls are charged at $19.99 a minute. :D

5376 posts
  • Member of the Envato Team
  • Has been part of the Envato Community for over 4 years
  • Located in Canada
  • Joined us in one of our Envato Live Events
+12 more
KingDog Envato team says

And the award for most replies in a row goes to…

by
by
by
by
by
by