ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

syntax errors

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
hamid noshadi
syntax errors
on Dec 15, 2015 at 8:45:58 pm

hi i'm new in after effect and an i have a problem .
tnx to helping me.



how can i fix this?

//Data from THIS LAYER > Position > "X" Only
center_X_con = 7.2 ;
center_X_var = pickwhip ;
left_X_con = -242/8 ;

//Data from THIS LAYER > scale
scale_X_center = 100 ;
scale_X_var = pickwhip ;
scale_X_side = 37/3 ;

//THAT'S IT! I'll take it from here
dist_pos=left_X_con-center_X_con;
dist_scale=-(scale_X_center-scale_X_side) ;
center modif=math.abs(center_X_var-center_X_con);
x=scale_X_center+((-center_modif'dist_scale)/dist_pos) + (scale_X_var-scale_X_side) ;
[x,transform.scale[1]]


Return to posts index

Kalle Kannisto
Re: syntax errors
on Dec 16, 2015 at 8:45:31 am

it seems that

center_modif'dist_scale

should be

center_modif*dist_scale


Return to posts index

Melisa Bala
Re: syntax errors
on Feb 14, 2018 at 6:36:39 pm

You should delete the spaces before ";" And try turning X's into lowercase, and "m" from Math to the uppercase.

dist_pos=left_x_con-center_x_con;
dist_scale=-(scale_x_center-scale_x_side);
center_modif=Math.abs(center_x_var-center_x_con);
x=scale_x_center+((-center_modif*dist_scale)/dist_pos) + (scale_x_var-scale_x_side);
[x,transform.scale[1]]


Return to posts index

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