1502 posts I create things I wish existed
  • Elite Author
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
+3 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..

1502 posts I create things I wish existed
  • Elite Author
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
+3 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.

576 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 6-7 years
  • Referred between 100 and 199 users
  • Bought between 100 and 499 items
+4 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… :)

1676 posts aspire to create - create to inspire
  • Elite Author
  • Author had a File in an Envato Bundle
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
  • Germany
+1 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 ;)

700 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Microlancer Beta Tester
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Bought between 1 and 9 items
  • United States
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.

4791 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 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.

4791 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 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.

4791 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 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.

4791 posts
  • Elite Author
  • Community Moderator
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Beta Tester
  • Has been a member for 4-5 years
  • United Kingdom
+5 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

4592 posts
  • Envato Staff
  • Has been a member for 4-5 years
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Bought between 50 and 99 items
  • Canada
  • Community Ambassador
  • Beta Tester
  • Contributed a Tutorial to a Tuts+ Site
+7 more
KingDog Staff says

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

by
by
by
by
by
by