-
multiple if else expressions
Trying to automate color swap using color select
looking to swap primary and secondary colors and also have the option to change either to a tertiary color
This is what I have so far for the primary color.
The second if statement negates the first. Believe I need something in between, but not sure whatAny help is appreciated
if (thisComp.layer("COLOR MASTER").effect("HOME SWAP")("Checkbox") == 0) {sampleImage([760,444],[1,1])} else
{
sampleImage([920,440],[1,1])
}
if (thisComp.layer("COLOR MASTER").effect("HOME PRI TO TER")("Checkbox") == 0) {sampleImage([760,444],[1,1])} else
{
sampleImage([930,536],[1,1])
}
Thanks Man