💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Camera.set() and Camera.new() -
-
The API doc for
Camera.set()
isn't right.Camera.set()
, as the name implies, sets the camera. It might have been better to call itCamera.set!()
. It does not return a reference to a new Camera object.Camera.new()
returns a reference to a new Camera object and should not be deprecated.c = cam.set( ... ) c == cam # true
The code example
camera = camera.set ...
is bad practice. Thecamera =
part should be discarded.Anyone with a copy of my Chapter 16 and its associated code should get a new copy.
Advertisement