sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    [Code] Scene Page flags getter method

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