How to turn off scene transitions with Ruby API?

I will cancel the transition animation of the scene first, as it will affect my ability to add scenes in bulk.


      model = Sketchup.active_model

      #save current state
      showTransition_original = model.options["PageOptions"]["ShowTransition"]
      # Turn off Transition
      model.options["PageOptions"]["ShowTransition"] = false

      # do your stuff
      #restore saved state
      model.options["PageOptions"]["ShowTransition"] = showTransition_original