How to be sure that the UI is updated?
-
Hello,
I'm looking for a way to be sure that sketchup has updated the UI.
I've seen some discussions on this topic but the solutions was to put a messagebox. But as I don't want to stay in front of my computer, that's not an option for the plugins I'm currently writting.
Is there another solution?
Thank you
Serge -
Hi serge. When do you want to keep it updated? While a ruby is running? If so, there is no way to force it to stay updated always. Once Ruby gets processing, the UI is ignored, to help speed up ruby. That is my understanding anyhow
-
Yes I'm looking to be sure that the UI is updated while I have a ruby script running. Actually I'm playing with the shadows and I want to save some pictures.
I share the idea to have Ruby running faster but in a lot of time it doesn't help. For example, when the Ruby console is no more updated (yes I'm still looking for a good tool to work on my plug-ins: spy, step-running, break points, ...)
What looks strange to me is that there's a function to say to Sketchup that it must not update the UI anymore. Is there any function to tell it to update the UI right now? A kind of "flush".
Thanks
Serge
Advertisement