Re: drag and drop image import?
Hi Eric, I would like to be able to drag an image to a metacard stack, drop the image, and have the stack recognize it as an image and import it. I have no idea the properties if that is even possible, I sort of doubt it. I could script opening a directory and importing the image no problem, or even a whole folder of images. But what I've not yet figured out is whether there is any way to poll the cursor for dragged images (on any platform). you could use my nice plug-in "2lz3" for MC (and/or "2lz2" for Rev) which supplies some DnD scripts for newly created stacks (and much more :-). Or check my "Drag and Drop Lite" stack, available via Rev-online. Ideas? Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: drag and drop image import?
>I would like to be able to drag an image to a metacard stack, drop the image, >and have the stack recognize it as an image and import it. > >I have no idea the properties if that is even possible, I sort of doubt it. I >could script opening a directory and importing the image no problem, or even a >whole folder of images. But what I've not yet figured out is whether there is >any way to poll the cursor for dragged images (on any platform). > >Ideas? Hi Eric, I have uploaded a drag and drop stack for you that will import (or link to) image files, supports multiple drop selections and handles text by way of an example... _www.FlexibleLearning.com/xtalk/dragndrop/DragAndDropSampler.rev_ (http://www.FlexibleLearning.com/xtalk/dragndrop/DragAndDropSampler.rev) /H FLCo Home of The Scripters Scrapbook ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: drag and drop image import?
Try this: Create a blank image object on your stack. Set the lockLoc of it to true. Set it's script: on dragenter set the acceptdrop to true end dragenter on dragDrop get the dragdata if it is not empty then put it into tFile if char -4 to -1 it is ".jpg" then set the filename of me to it end if end if end dragDrop That should get you started :-) best, Chipp Eric Engle wrote: I would like to be able to drag an image to a metacard stack, drop the image, and have the stack recognize it as an image and import it. I have no idea the properties if that is even possible, I sort of doubt it. I could script opening a directory and importing the image no problem, or even a whole folder of images. But what I've not yet figured out is whether there is any way to poll the cursor for dragged images (on any platform). Ideas? __ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard