Forum Replies Created

  • Eman66

    July 31, 2020 at 2:06 pm in reply to: multiple if else expressions

    Hey Dan

    Not sure I explained in properly

    Ended up figuring it out…needed to use && to make it work

    Final expression below

    Thanks

    target = thisComp.layer("HOME SWATCH");
    if (thisComp.layer("COLOR MASTER").effect("HOME SWAP")("Checkbox") == 1 && thisComp.layer("COLOR MASTER").effect("HOME PRI TO TER")("Checkbox") == 1)
    target.sampleImage([930,530],[1,1]) else
    if (thisComp.layer("COLOR MASTER").effect("HOME SWAP")("Checkbox") == 1 && thisComp.layer("COLOR MASTER").effect("HOME PRI TO TER")("Checkbox") == 0)
    target.sampleImage([930,450],[1,1]) else
    if(thisComp.layer("COLOR MASTER").effect("HOME SWAP")("Checkbox") == 0 && thisComp.layer("COLOR MASTER").effect("HOME PRI TO TER")("Checkbox") == 1)
    target.sampleImage([930,530],[1,1]) else
    target.sampleImage([760,444],[1,1])

    Thanks Man

  • Eman66

    July 30, 2020 at 12:45 pm in reply to: multiple if else expressions

    Thanks man. That was helpful

    Running into another issue.

    Checkbox works to swap primary and secondary colors and checkbox works to swap primary to tertiary….but if I swap primary and secondary….i’m unable to swap “new’ primary color with tertiary.

    Can there be a statement that says keep the initial swap and then add second swap?

    Hopefully I’m explaining this right

    Thanks in advance

    Thanks Man

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy