jeff.perrin wrote: > I'm doing my first script and i have a problem. > I load an image into Gimp 2.2, I make a selection and my script must > paste the selection into a new image and save this new picture into a > specific file. > > My question is how to get the image object after the command : > plug-in-clipboard-paste-as-new [snip] > Here is my script : [snip] > (plug-in-clipboard-paste-as-new 0) Are you certain about which version of GIMP you are using? I can't find an API entry 'plug-in-clipboard-paste-as-new' in either the 2.2 or SVN versions. The best thing to do is check the procedure browser which documents the API. It shows the arguments needed and the return values. If you check, I think you will find that the function returns a new image ID. -- Cheers! Kevin. http://www.ve3syb.ca/ |"What are we going to do today, Borg?" Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus: | Try to assimilate the world!" #include <disclaimer/favourite> | -Pinkutus & the Borg