Filter by only pages checked as “used in animation” ?
I just used this in a test of mine as:
@pages = model.pages.select {|pg| page_used_in_animation?(pg) }
ADD: Post release of SketchUp 2018
…
With v 18 or higher, a custom method is no longer needed.
Animation flag setter and getter methods were added to the Sketchup::Page
class:
@pages = model.pages.find_all {|pg| pg.include_in_animation? }