Tip: Run Python scripts via drag-and-drop in Rhino 8

I recently discovered that Rhino 8.10+ will _-ScriptEditor _Run a Python script when the file is dragged from Windows Explorer onto a viewport. This offers a convenient way to execute scripts that aren’t set up as commands or aliases, especially those used only occasionally.

  • The file name must end with .py; .py2 and .py3 are not supported.
  • This does not work for C# scripts (.cs or .csx).
  • This issue, RH-82540 was solved for both platforms.
  • RH-82540 seems to be a duplicate of RH-46719, so the latter should also be closed.

Thanks, Steven -

I’ve recycled RH-46719 to make it work for the .py2 and .py3 file name extensions.

RH-92181 Allow drag and drop of C# files
-wim