The only difference with a 3D layer is that it would need a third value. Here, only our value x will have the wiggle. If you want to just wiggle one of the axis of a 2D layer you can simply do this: var wiggle = wiggle(.5, 20) If you are applying it on a 3D layer, it returns an array of three numbers ( ) and if you are applying it on a 2D layer it returns an array of two numbers ( ).
The wiggle function returns an array or numbers. So if you would like your position to move on a scale of 20 pixels every half second you would use this expression on the position property: wiggle(.5, 20) The typical wiggle expression in After Effects is this: wiggle(frequency, amplitude)