-
How to feed an argument of lenght 1 when a lenght 2 is demanded?
Hello everybody!
.
— SITUATION —
There is a 3D head layer (with its usual X, Y and Z rotation) inside Comp1, that has to be controlled by a 2D null in Comp2. The idea is having the 2D null floating over comp2, affected (moved) by the mouse. Its X position will control Y rotation of the 3D head; its Y position will control X rotation and its rotation will control the Z rotation of the head, as summarized below:
.DIRECT PICKWHIPING
3D head in Comp1 2D null in Comp2
X rotation property —————————————————————- Y position
comp(“comp2”).layer(“2D_null”).transform.yPositionY rotation property —————————————————————- X position
comp(“comp2”).layer(“2D_null”).transform.xPositionZ rotation property —————————————————————– rotation
comp(“comp2”).layer(“2D_null”).transform.rotation.
— PROBLEM —
When I pickwhip from the 3D head properties to 2D null properties, I have the simple expressions above, turning the 3D head to a crooked image, in a strange position, difficult to be controlled by moving the 2D null with the mouse.
When I try to send those properties toWorld (or toComp) and catch them back fromWorld (fromComp), Ae throws this ERROR:“First argument to toComp (or toWorld) must be a vector of length 2 or 3”
.
— QUESTION —
How can those simple expressions be written, so that layer transforms are correct?I thank you all in advance for the answers!