ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Re: Expression problem, I need to understand why

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Darby EdelenRe: Expression problem, I need to understand why
by 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


Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]