ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression problem, I need to understand why

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Erick Wilczynski
Expression problem, I need to understand why
on Aug 17, 2012 at 3:45:20 am

This expression is not working for me and I know it should be. Can anyone tell me what i'm doing wrong. In the comp I'm using Particular to trace masks and this expression is supposed to prevent the lines between masks.

Adobe gives me this error:

After Effects warning: Expected: ;
Expression disabled.

Error occured at line 1.
Comp: 'name'
Layer: 2 ('particular')
Property: 'Particles/sec'

I see where the error is but I don't understand why there is an error.

It's based off of this tutorial: ae.tutsplus.com/tutorials/motion-graphics/quicktip-fast-and-easy-text-writing-with-particular/
He uses the same expression flawlessly and I used it identically.

-E
-vimeo.com/36013051 (reel)
-RambozMediaGroup.com (production house)


Return to posts index

Darby Edelen
Re: Expression problem, I need to understand why
on Aug 17, 2012 at 4:31:30 am

You didn't include the expression you're talking about in your post.

Darby Edelen


Return to posts index

Erick Wilczynski
Re: Expression problem, I need to understand why
on Aug 18, 2012 at 6:45:32 am

Sorry. Here is the expression X = effect("Checkbox Control")("Checkbox") if (X = = 0)0 else (effect("Particular")("Particles/sec"))

It's still not working for me.

-E
-vimeo.com/36013051 (reel)
-RambozMediaGroup.com (production house)


Return to posts index


Darby Edelen
Re: Expression problem, I need to understand why
on Aug 19, 2012 at 7:08:27 pm

[Erick Wilczynski] "Sorry. Here is the expression X = effect("Checkbox Control")("Checkbox") if (X = = 0)0 else (effect("Particular")("Particles/sec"))"

You have to separate the different operations with semi-colons like this:


X = effect("Checkbox Control")("Checkbox");
if (X == 0) 0;
else (effect("Particular")("Particles/sec"));


Also, I'm quite sure that you'll need the == operator without any spaces in between the ='s. == (comparison) is a wholly different operator than = (assignment) and two ='s separated by a space may be seen as two assignment (=) operators instead of one comparison (==) operator.

-D

Darby Edelen


Return to posts index

Vishesh Arora
Re: Expression problem, I need to understand why
on Aug 17, 2012 at 5:16:47 am

MR. Wilczynski
I have tried this for you and I got the solution

While Typing the first line
"x=....." x is a small cap letter

But second time He types Capital x : "X"
So just change the Small cap "x" "capital "X" in the first line and it will work :)

Vishesh Arora
VFX and MOtion Graphics Artist

http://digieffects.wordpress.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]