create 2 ncurve and grp it as gate_grp and parent with cam and use this code for
focal length adjsutment
CODE
gate_grp.sx=1 / (gate_camShape.focalLength /35);
gate_grp.sy=1 / (gate_camShape.focalLength /35);
gate_grp.sz=1 / (gate_camShape.focalLength /35);