• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Camera.set() and Camera.new() -

Scheduled Pinned Locked Moved Developers' Forum
1 Posts 1 Posters 205 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    MartinRinehart
    last edited by 19 Apr 2010, 15:01

    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 it Camera.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. The camera = part should be discarded.

    Anyone with a copy of my Chapter 16 and its associated code should get a new copy.

    Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement