-
Expression to move a 3d layer in the x y and z axis
Hi All,
I’m putting together an animation that involves several layers following each other like a Fan. Not being a guru in exprssions I have found a fan card expression and would like to adapt it or add a new null so that I can move the layers in the x, y a z space. The fan expression is:
fanAmount = thisComp.layer(“card fan”).effect(“Fan Amount”)(“Angle”);
fanOffset = thisComp.layer(“card fan”).effect(“Fan Offset”)(“Angle”);
targetCard = thisComp.layer(“card fan”).effect(“Target Card Index”)(“Slider”);(index – targetCard)*fanAmount + fanOffset
This works very well, so I have been looking around for an expression that will move each layer simultaneously and have so far gone done the route of creating another null layer to control the x y and z with sliders, but I just can’t get it to work. I’m sure it’s very straight forward!
Any ideas, solutions gratefully received!!
Thanks
Dave
