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

Expression slider control error.

Community Beginner ,
Nov 21, 2019 Nov 21, 2019

Hi everyone.

I just recently upgraded my After Effects to 2020 version but now it seems like that wasn't good idea at all.

 

First of all I've got this weird and REALLY annoying problem with expression slider control.

Can anyone explain why this expression gets disabled (screenshot attached)?

Though I'm not an expression expert but I've used slider control hundreds of times and never had a single problem. So frustrating.

 

Thanks a lot already.

Reimo.

 

Screenshot 2019-11-21 at 16.47.39.png

TOPICS
Error or problem , Expressions
5.2K
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
Community Beginner ,
Nov 21, 2019 Nov 21, 2019
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
Community Expert ,
Nov 21, 2019 Nov 21, 2019

The error is reported to be in line 2, but your screenshot just shows one line and there is no semicolon at the end of the line.

 

To diagnose the problem we need to see the expression.

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
Community Beginner ,
Nov 21, 2019 Nov 21, 2019

Thanks a lot for your quick response Rick.

 

Well I think that this IS the actual problem. After Effects thinks that there's more than 1 line, but there isn't really. Or am I missing something here. That's the whole expression there.

 

I added another screenshot.

 

Screenshot 2019-11-21 at 17.24.39.png

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
Community Beginner ,
Nov 21, 2019 Nov 21, 2019
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
Community Expert ,
Nov 21, 2019 Nov 21, 2019

You are missing the final parentheses.

 

wiggle(5, 20) will work. If you replace the 20 with a slider you would write this:

 

wiggle(5, thisComp.layer("Wiggle Slider").effect("Slider Control")("Slider"))

 

Your workflow, the way you are writing the expression, and your naming structure are pretty inefficient. I'm not sure what you are trying to do but it is usually a better idea to rename the Slider Control and declare a variable. Tell us exactly what you are trying to accomplish and maybe we can point you to a more efficient solution.

 

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
Mentor ,
Nov 21, 2019 Nov 21, 2019

Just do what the error message says and add a ) at the end. Your wiggle() isn't closed yet.

Also, always end a command with ;

 

*Martin

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 ,
Jul 22, 2022 Jul 22, 2022

Please , im facing the same problem could you pls tell me how to solve

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
Community Expert ,
Jul 22, 2022 Jul 22, 2022
LATEST

We need a screenshot showing the modified properties of the problem layer and a copy of the expression to figure out what is going on. 

 

* The "Drag & Drop here..." area works, but it is a pain for the forum users to access the photos. Please do not use it to share images. You can use the toolbar, drag your pictures to the reply field, or even copy and paste the file directly in the reply field, then size them up so we can easily see them.

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