This should be simple but for some reason, I can't seem to access the main camera using javascript. Here is how I'm trying to access it:
var c3d = getAnnots3D(0)[0].context3D;
var camera = c3d.scene.cameras.getByID(0);
I've tried a bunch of camera operations (i.e. projectionType, position, roll, etc.) but it doesn't seem to be referencing the main camera, i.e. nothing changes in the view. When I manually change the view and query the camera position using javascript it shows that it didn't change. It just seems like I'm not accessing the camera properly. I don't have any other cameras in the scene. What am I doing wrong?
North America
Europe, Middle East and Africa
Asia Pacific