File support in Ctrl+C/Ctrl+V like Drag&Drop

Hello,

When using Ctrl+V, there’s no support for raw data when it’s contained within a file.

If I copy raw PNG data to the clipboard, I can paste the image into Rhino.

If I drag an image from the file explorer, Rhino displays a dialog box to insert the image.

However, if I use Ctrl+C inside the file explorer or create a DROPFILES (on windows API) from scratch in the clipboard, Rhino tells me “Cannot paste, no Rhino object, image, or text in the clipboard,” even though it can do it with drag and drop.

And, Ctrl+C doesn’t create a DROPFILES. So, it’s possible to copy the viewport and paste it into a third-party application (Notes, Photoshop, etc.), but not into the file explorer, which would be very convenient.

Alternatively, is there a way to capture the “paste” event using a script to retrieve the pasted file?

Thank you

Net framework has System.Windows.Forms.Clipboard class… can you be more specific on what you want to “paste”?

You might create a c# script (or python maybe) that when you press the button to start it , it will get data from the clipboard and do something with that.
I usually do:
System.Collections.Specialized.StringCollection result = System.Windows.Forms.Clipboard.GetFileDropList();
to quickly get a big list of files paths… i do “copy” on windows explorer, and trigger a script on rhino to “paste” the list.