[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