I'm using a script called Camera Lock by Richard Haseltine. It locks all cameras, but leaves out a few things. I'd like to add locking focal length and focal distance to it, but adding code like getFocalLength(), or getFocalDistance() only causes the script to fail. I added them like the working code pieces within the script for locking x position and rotation below. (actual script has more before and after and Googles by the above name and author)
control = selectedNodes[ n ].getXPosControl();
if ( control ) {control.lock( true )}
control = selectedNodes[ n ].getXRotControl();
if ( control ) {control.lock( true );}
Also the script also locks lights which is not what I want. How would I disable that? It could be why focal length and distance code didn't work.