Skip to main content
Inspiring
August 24, 2022
Answered

How can I make toggle switch with checkboxes in After Effects?

  • August 24, 2022
  • 2 replies
  • 696 views

I have a simple task, it is necessary that when one checkbox is on, the rest are turned off according to the toggle switch principle, how to create this using expressions in After Effects?

This topic has been closed for replies.
Correct answer Mylenium

You can't. Checkbox controls are read-only and cannot be modified from within the expression. You have to think of another method. Explaining what you are actualyl trying to do might allow us to advise.

 

Mylenium

2 replies

Community Expert
August 24, 2022

This works:

 

if (effect("Checkbox Control 2")("Checkbox") == 1){
	0;
}

else{
	value
}

 

As long as Checkbox 2 is not selected (checked), the Checkbox with this expression can be on or off. If you select Checkbox 2, the checkbox with the expression will be turned off. 

 

Mylenium
MyleniumCorrect answer
Legend
August 24, 2022

You can't. Checkbox controls are read-only and cannot be modified from within the expression. You have to think of another method. Explaining what you are actualyl trying to do might allow us to advise.

 

Mylenium

MoistoffAuthor
Inspiring
August 24, 2022

Thank you for answer!
I just wanted to know if there is actually possible, thats a pity that is not 😞

Dan Ebberts
Community Expert
Community Expert
August 24, 2022

If you're trying to simulate a set of radio buttons (only one can be on at a time) a Dropdown Menu Control is often a workable alternative.