1676 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..

1676 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.

594 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… :)

2652 posts aspire to create - create to inspire
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helped several times protecting Envato Market against copyright violations
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+10 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 ;)

809 posts
  • Has sold $10,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 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.

5257 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+11 more
felt_tips 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.

5257 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+11 more
felt_tips 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.

5257 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+11 more
felt_tips 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.

5257 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+11 more
felt_tips 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

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

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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by