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

How can I invert a scale by using Checkbox Control?

New Here ,
Aug 03, 2020 Aug 03, 2020

Copy link to clipboard

Copied

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

Views

1.3K

Translate

Translate

Report

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

Votes

Translate

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

Copy link to clipboard

Copied

Probably just missing square brackets:

 

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

 

Dan

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Dan, thank you so much!!

Fixed. 

Votes

Translate

Translate

Report

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