ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Script to bind one text layer to several checkboxes

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dmitriy Khomyakov
Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 7:05:30 pm

Hello friends!
I need help. I need to bind one text layer to several checkboxes.
Help write a script
-------------------------------------------------------------------------------------
Привет друзья!
Мне нужна помощь. Мне нужно привязать один текстовій слой к нескольким чекбоксам.
Помогите написать скрипт


if (thisComp.layer("ChangeTheme").effect("PRIME")("Checkbox")==1) 100 else 0;


Return to posts index

Dan Ebberts
Re: Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 8:26:57 pm

What do you mean by "bind"? If one checkbox is on, or if all of them are on?

Dan



Return to posts index

Dmitriy Khomyakov
Re: Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 8:32:48 pm

I want the text layer to be turned on when turning on either the second, or the fifth, or the ninth checkbox


Return to posts index


Dmitriy Khomyakov
Re: Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 8:39:02 pm


Does not work


Return to posts index

Dan Ebberts
Re: Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 8:40:18 pm

It's an expression for the Scale property.

Dan



Return to posts index

Dan Ebberts
Re: Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 8:42:51 pm

I'd set it up like this:

L = thisComp.layer("Control");
cb2 = L.effect("Checkbox Control 2")("Checkbox").value;
cb5 = L.effect("Checkbox Control 5")("Checkbox").value;
cb9 = L.effect("Checkbox Control 9")("Checkbox").value;
(cb2 || cb5 || cb9) ? 100 : 0


Dan



Return to posts index


John Westlen
Re: Script to bind one text layer to several checkboxes
on Feb 9, 2019 at 8:50:18 pm

Hello Dan! Im sorry to bother I posted this earlier i'm having alot of trouble with it. It's a code you wrote from another thread but i have one issue on it ( i edited it) that i really would like help with. Thanks!

Here's the thread https://forums.creativecow.net/thread/227/40935


Return to posts index

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