FORUMS: list search recent posts

negative value

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Vahid Maleki
negative value
on May 26, 2014 at 1:10:46 pm

hi
i have 34 layers
and in position of layers add that expressions.
i create tow slider control:
1.for z Position
2.randomization
i want layers don't go behind my background.
i want the the z position of layers always be negative

seedRandom(thisComp.layer("PC").effect("Random")("Slider")+index) value+[0,0,wiggle(0,thisComp.layer("PC").effect("Z")("Slider"))[2]] if (transform.position[2])[value[0],value[1],-value[2]]


Return to posts index


Dan Ebberts
Re: negative value
on May 26, 2014 at 2:42:22 pm

Try it this way:

seedRandom(thisComp.layer("PC").effect("Random")("Slider")+index);
[value[0],value[1],-Math.abs((wiggle(0,thisComp.layer("PC").effect("Z")("Slider"))-value)[2])]



Dan



Return to posts index

Vahid Maleki
Re: negative value
on May 27, 2014 at 5:39:25 am

thank you so much......


Return to posts index

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