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

    [Code] Scene Page flags getter method

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 115 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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      [ Code ] Scene Page flags getter method

      (From my unreleased thumbnail utility.)

        #{ get_page_flags( page )
        #
        #  Returns the flags bitmask for a Sketchup;;Page.
        #
        def get_page_flags( page )
          return 127 unless page.is_a?(Sketchup;;Page)
          flags = 0
          flags +=  1 if page.use_camera?         # Camera Location
          flags +=  2 if page.use_style?          # Drawing Style
          flags +=  4 if page.use_shadow_info?    # Shadow Settings
          flags +=  8 if page.use_axes?           # Axes Location
          flags += 16 if page.use_hidden?         # Hidden Geometry
          flags += 32 if page.use_hidden_layers?  # Visible Layers
          flags += 64 if page.use_section_planes? # Active Section Planes
          return flags
        end #}
      
      

      💭

      I'm not here much anymore.

      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