sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

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

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 207 Views 1 Watching
    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

      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
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement