FORUMS: list search recent posts

Expression to modify X,Y emitter position

COW Forums : Trapcode

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Arnaud Paris
Expression to modify X,Y emitter position
on Feb 20, 2011 at 1:07:23 am

Hello,

I'm trying to add a fixed 1500 pixels in X and 2000 pixels in Y to the emitter animated XY position.

The expression that appears by default in Particular for XY Position is 'effect("Particular")(5)'

I'm not sure how to tackle this.

If I add 1500 in the expression field:
effect("Particular")(5)+1500

I do get the X position offseted as I want, but I don't see how to offset the Y position with this kind of expression.

I tried:
effect("Particular")(5)(X,Y)
X=this.effect.position+1500
Y=this.effect.position+2000

But I get an expression error warning

Thanks for your help,

Arnaud

4K Red Digital Cinema in Paris
http://www.locared.com


Return to posts index

Mike Park
Re: Expression to modify X,Y emitter position
on Feb 20, 2011 at 1:14:29 am

You need to add an array to the position. Try this:

effect("Particular")(5)+[1500,2000]

This should work. You can also use:

value+[1500,2000]

Value just reads the x and y parameters you put in and since it is a 2d array, you need to add an array of 2 numbers to it, hence the numbers in the brackets. If you want to add an offset to a 3d position, you would use "value+[x,y,z]" where x y and z are the numbers of the offset you want. Hope this fixes your problem.

Best,

Mike Park


Return to posts index

Arnaud Paris
Re: Expression to modify X,Y emitter position
on Feb 20, 2011 at 1:39:52 am

Ah yes, that was the array! Thanks a lot Mike!

4K Red Digital Cinema in Paris
http://www.locared.com


Return to posts index


Mike Park
Re: Expression to modify X,Y emitter position
on Feb 20, 2011 at 2:52:42 am

You are welcome, glad to help.


Return to posts index

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