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

[after effects] expression error

New Here ,
Dec 19, 2017 Dec 19, 2017

when I put in "position" this expression   if(opacity == 100) {w=wiggle(150,8);}

after effects find an error and tell me to put a number but not a Layer.

Can you help me please?

thanks

TOPICS
Expressions
1.7K
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 , Dec 20, 2017 Dec 20, 2017

The expression needs to also generate a result when the opacity isn't 100, like this maybe:

if (transform.opacity == 100) {

  wiggle(150,8);

}else{

  value;

}

Dan

Translate
Contributor ,
Dec 19, 2017 Dec 19, 2017

Works fine for me.

Try this:

if(transform.opacity == 100) {wiggle(150,8);}

can you post a screenshot of the error?

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 ,
Dec 20, 2017 Dec 20, 2017

error.jpg

with transform.opacity is the same

thanks!

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 ,
Dec 20, 2017 Dec 20, 2017

The expression needs to also generate a result when the opacity isn't 100, like this maybe:

if (transform.opacity == 100) {

  wiggle(150,8);

}else{

  value;

}

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 ,
Dec 20, 2017 Dec 20, 2017
LATEST

thanks!!

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