algorithmic modeling for Rhino
hi,
i have a python component which takes some time to compute, and i want some feedback - think progress bar.
Text would be enough, and i can Write to the rhino console with RhinoApp.WriteLine, and update with RhinoApp.Wait(), but grasshopper looses focus in a weird way after the component is done - namely i can't pan the gh-viewport anymore (can zoom though), unless i try to pan while the component is calculating - then it stays.
I guess it has something to do with focus - any idea how to give it back to Gh after the last RhinoApp.Wait?
My other try was with Ironpython Winforms (through clr) - works fine, but as soon as i close the form, grasshopper closes too, and won't reopen (hides)
i guess there is some simple way to dispose of the winform once the component is done, but i haven't found it (also i always have to restart, reload everything each time i fail)
Are there any other (simpler?) ways to get some kind of feedback while Gh is working?
Thanks
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by