yep, ‘z’ would be position[2], or to use the current value for z, value[2]. so your final part of the expression would look something like this [value[0],y,value[2]]… this would link only the y property to your slider, allowing free positioning of x and z for your page layer.
you would use brackets to define an array, like [x,y,z] or [120,-50,400]. several layer properties are defined by arrays, position, scale and anchor point are common. but there are also many expressions that use multiple variables in an array to derive a value. i’ve recently started exploring these.
you will also use brackets after a property that would be defined as and array, like position, to specify a particular value of the array. so position[0], would specify the position value of x (first value of the array) of a given layer, scale[1] would specify the vertical (or second) scale value of a given layer.
thus, value[1] would specify the current value for the second array value of that particular property, so value[1] for position would return the y postion of that particular layer.
if you’re like me, and have no programming background, expressions have a slow learning curve. look at the help menu or manual for expressions, also the scripting guide on the install disc has more info, but neither give great explanations fro non-programmers. dan ebbert’s motionscript.com is a very good resource and where i’ve learned most of what i know…. he really needs to come out with a book.
Kevin Camp
Designer – KCPQ, KMYQ & KRCW