How drag and drop file inside screen sketch and obtain path of file.
do not use the sDrop library
How drag and drop file inside screen sketch and obtain path of file.
do not use the sDrop library
You don‘t you want to use sDrop?
As far as i can tell, you can just take a look at the github Code of sDrop to see how it works.
In any case i‘d still consider using sDrop (or similar libraries) instead of attempting to do this yourself. It‘s not really worth it, unless you don‘t have any other way. And as far as i can tell, sDrop seems to be pretty straight forward to use.
sDrop library does not work with P2D or P3D renderers.
There is a modification of sDrop called ‘Drop’ which you could try:https://transfluxus.github.io/drop/ .