Created
October 21, 2019 15:56
-
-
Save seblavoie/8265ce2400a32c932caf1a3887bf41dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _comp; | |
for (var i = 1; i <= app.project.numItems; i ++) { | |
if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name === '# Main')) { | |
_comp = app.project.item(i); | |
break; | |
} | |
} | |
var _checkbox = _comp.layer("Controller").Effects.property("Dev?")("Checkbox"); | |
var _newValue = _checkbox.value == 1 ? 0 : 1; | |
_checkbox.setValue(_newValue); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment