api-issue-tracker
api-issue-tracker copied to clipboard
Pages.selected_page= not working on MacOS when SketchUp window is not active
Repro steps:
- Start SketchUp 2023 (or earlier version) on MacOS.
- Open a project with at least 2 scenes
- 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.
Does (3) work ? This is not indicated above.
How does this work on Windows platform with the new Qt interface ?
Logged as: SKEXT-3816