api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

Pages.selected_page= not working on MacOS when SketchUp window is not active

Open SimonWeinbergerEnscape opened this issue 2 years ago • 2 comments

Repro steps:

  1. Start SketchUp 2023 (or earlier version) on MacOS.
  2. Open a project with at least 2 scenes
  3. Run in Ruby Console: Sketchup.active_model.pages.selected_page = Sketchup.active_model.pages[0]

A) 4. Run in Ruby Console: Sketchup.active_model.pages.selected_page = Sketchup.active_model.pages[1] this does work as expected, this activates the second scene

B) 4. Run in Ruby Console: UI.start_timer(5, false) { Sketchup.active_model.pages.selected_page = Sketchup.active_model.pages[1] } this does work as expected, this activates the second scene after a 5 second delay

C: 4. Run in Ruby Console: UI.start_timer(5, false) { Sketchup.active_model.pages.selected_page = Sketchup.active_model.pages[1] } 5. Switch to any other application in the next 5 seconds this does not work, nothing happens

High level use case: Our plugin (Enscape) runs large parts of logic and UI in a separate OS process. Some interactions in our UI should trigger a scene transition in SketchUp, but SketchUp is not the active application when the user performs the interaction.

SimonWeinbergerEnscape avatar Aug 01 '23 11:08 SimonWeinbergerEnscape

Does (3) work ? This is not indicated above.

How does this work on Windows platform with the new Qt interface ?

DanRathbun avatar Aug 01 '23 17:08 DanRathbun

Logged as: SKEXT-3816

sketchup[bot] avatar Aug 07 '23 06:08 sketchup[bot]