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
-
[ 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 #}
Advertisement