Skip to main content
EuDanielCS
Participant
August 3, 2020
Answered

How can I invert a scale by using Checkbox Control?

  • August 3, 2020
  • 1 reply
  • 1707 views

Hey guys, 

 

I'm trying to invert a scale using a Checkbox Control and Expressions and I'm not getting it done. Check the expression below:

 

if(thisComp.layer("R LEG").effect("Checkbox Control")("Checkbox")>0) {120,120} else {-120,120}

 

It was working in After Effects CC 2018, I'm using CC 2020 today.

 

Someone can help me? 🙂

Correct answer Dan Ebberts

Probably just missing square brackets:

 

if(thisComp.layer("R LEG").effect("Checkbox Control")("Checkbox")>0) {[120,120]} else {[-120,120]}

 

Dan

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
August 3, 2020

Probably just missing square brackets:

 

if(thisComp.layer("R LEG").effect("Checkbox Control")("Checkbox")>0) {[120,120]} else {[-120,120]}

 

Dan

EuDanielCS
Participant
August 3, 2020

Dan, thank you so much!!

Fixed.