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!
π¨ Skimp | 25% Off until March 30 Buy Now
[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 #}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement