- Microlancer Beta Tester
- Won a Competition
- Author was Featured
- Item was Featured
- Exclusive Author
- Referred between 50 and 99 users
- Bought between 10 and 49 items
- Has been a member for 2-3 years
- Europe
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..
- Microlancer Beta Tester
- Won a Competition
- Author was Featured
- Item was Featured
- Exclusive Author
- Referred between 50 and 99 users
- Bought between 10 and 49 items
- Has been a member for 2-3 years
- Europe
Maybe there should be Felt’s phone number in bold on the Videohive web heading? He is the savior of expression world.
- Author was Featured
- Item was Featured
- 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 5-6 years
- Referred between 100 and 199 users
- Bought between 100 and 499 items
cyzer said
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… 

cyzer said
(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 
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.
- Community Moderator
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Item was Featured
- Author had a File in an Envato Bundle
- Beta Tester
- Has been a member for 4-5 years
- United Kingdom
GrizzleFX said
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.
- Community Moderator
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Item was Featured
- Author had a File in an Envato Bundle
- Beta Tester
- Has been a member for 4-5 years
- United Kingdom
Creattive said
cyzer said
(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.
- Community Moderator
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Item was Featured
- Author had a File in an Envato Bundle
- Beta Tester
- Has been a member for 4-5 years
- United Kingdom
cyzer said
(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.
- Community Moderator
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Item was Featured
- Author had a File in an Envato Bundle
- Beta Tester
- Has been a member for 4-5 years
- United Kingdom
cyzer said
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. 
- Has been a member for 3-4 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
- Envato Staff
And the award for most replies in a row goes to…
