Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I invert a scale by using Checkbox Control?

New Here ,
Aug 03, 2020 Aug 03, 2020

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? 🙂

TOPICS
Expressions
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 03, 2020 Aug 03, 2020

Probably just missing square brackets:

 

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

 

Dan

Translate
Community Expert ,
Aug 03, 2020 Aug 03, 2020

Probably just missing square brackets:

 

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

 

Dan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2020 Aug 03, 2020
LATEST

Dan, thank you so much!!

Fixed. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines