Hi @stevebaer , to add to this recent issue, there is one more that could be related while looking into it.
That one last time worked ok with Monkey compiler and V4, but for a while, since the new compiler was out, it stopped working. Hope this is not confusing regarding the original post because it is a slightly different thing, but can be related. I have been mentioning it over the past few years every now and then with no luck so far.
Currently in V5 and V6 scripts that are executed via _Runscript([script code here]) command or _Runscript([preloaded script name here]) work OK and “inside” regular Rhino commands. So we have developed many tools based on that that help with modeling process. Assigned to key shortcuts as aliases, they create a powerfull one-shot display aids while modeling, like: restoring title view, moving target to object under cursor, disabling/enabling selection highlight in display mode, scaling ortho views display, etc. etc.
So for example if I run the Polyline command, while drawing points I can use the key shortcut to execute these and get visual/view-based aids, within the command. This is great and very useful.
Unfortunately as soon as these scripts become compiled Rhino commands, they don’t work in-commands (basically they get ignored), so assigning them to key shortcuts doesn’t make sense. It poses a problem with distributing them internally or publishing such tools. As I mentioned, somehow it used to work fine with old Monkey, but not since the new compiler came out.
It has been logged here: https://mcneel.myjetbrains.com/youtrack/issue/RH-31820
With some potential solution idea from Dale:
I figured I would mention this here since they may be related and looked into together.
thank you,
–jarek