-
CS4 AE Null Layer Script Error
I watched this video on VideoCopilot: https://www.videocopilot.net/tutorial/3d_stroke_effect/
At 7:30, the narrator implements adobe script into after effects to parent a null layer’s position to that of a CCParticle effect layer.
Here are the statements:
x=thisComp.layer(“Null 1”).transform.position[0]-thisComp.width/2;
x/thisComp.widthy=thisComp.layer(“Null 1”).transform.position[1]-thisComp.height/2;
y/thisComp.widthz=thisComp.layer(“Null 1”).transform.position[2];
z/thisComp.widthHowever, when I enter in the Position Z statement, I get an AE Error Message: “After Effects warning: Bad argument: index 2 out of range for stream of dimension 2
Expression disabled.Error occurred at line 1.
Comp: “compName
Layer:2 (‘particle2’)
Property:’Position Z'”The other statements do not garner any error messages, nor indeed are they disabled. Why is this Position Z acting up?
An Artist interested in the past, stuck in the present.