[Gimp-developer] Using GIMP from my own program
Pablo Yaggi
pyaggi at alsurdelsur.com
Tue Dec 16 11:45:33 PST 2008
Now I have my script running, It's a simple script that produces the
table-mirror effect apple does, but is it possible to check whether
the interface is available or not, I mean if gimp is running with -i mode
(no interface).
Also, the script resizes the original image, is it possible to change the
actual zoom from inside the script? how ?
Bests,
Pablo
On Tuesday 16 December 2008 15:45:15 saulgoode at flashingtwelve.brickfilms.com
wrote:
> Quoting Pablo Yaggi <pyaggi at alsurdelsur.com>:
> > Ok, I made it work, I just replaced newlayer for newimage in the
> > gimp-edit-paste call and it worked.
> > But pasting into the image should work, shouldn't ?, do I have
> > to set up a current layer or something ?
>
> There is no "paste-as-new-layer" function provided as such by the PDB
> interface (though there is a menu command for that) and so you must
> perform a couple of separate functions to achieve the same result.
>
> You do not need to set up a current layer, but you need to perform a
> 'gimp-floating-sel-to-layer' after your 'gimp-edit-paste'. This will
> result in a new layer at the top of the layerstack -- unlike the menu
> command, which places the new layer above the active layer -- and
> therefore it does not matter which layer (or drawable) is active at
> the time the paste is performed.
>
> If you instead wish the resulting new layer to appear just above the
> current layer then you will need to make note of the current layer's
> position (using 'gimp-image-get-layer-position') and lower the pasted
> layer accordingly (using 'gimp-image-lower-layer' the appropriate
> number of times).
>
>
>
> _______________________________________________
> Gimp-developer mailing list
> Gimp-developer at lists.XCF.Berkeley.EDU
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /lists/gimp-developer/attachments/20081216/dca93686/attachment.html
More information about the Gimp-developer
mailing list