CEP-Resources
CEP-Resources copied to clipboard
[Question] What Adobe products support drag & drop as a way to import files?
I know Premiere Pro is one of them, using something like:
event.dataTransfer.setData('com.adobe.cep.dnd.file.0', path);
But, is there another product that support this feature? After Effects? Photoshop? Illustrator? InDesign?
Thanks in advance!
Note: Drag-n-drop in PPro is treacherous, in that PPro displays three distinct behaviors, depending on where the user drops the file. Related: You have no way of knowing where the user drops the file. :)
To maintain full control over import (including-but-not-limited-to: targeting a specific bin, renaming the imported projectItem something readable, stamping it with XMP metadata from a MAM) we emphatically encourage footage providers to adopt a "tick checkboxes next to the ones you want, then click an Import button" strategy instead.
But yes, PPro does support drag-n-drop.
Thanks for the quickly response!
I bother you with one more question, are After Effects / Photoshop / Illustrator / InDesign supporting drag and drop to import files?
Photoshop does, it has 2 methods. DD on workspace opens it, DD on open document places and links.Illustrator acts same as photoshop on DD. Indesign only support its when document is open, on DD it changes to placement tool for the linked files.
But I guess by now you already know ;)
You can use the HTML Drag and Drop API for any file to get it's file path then prompt it to open inside the host app through a scripting call if you drag to a CEP panel instead of the host app.