carol.gimp.org

gimp2

Python:set group undo

python

These two lines will keep your plug-in from writing to TheGIMP's undo history.

group_undo

File   Edit   Search   Preferences




# right after you make your new image 
    image = pdb.gimp_image_new(image_width, image_height, RGB)
    pdb.gimp_image_undo_group_start(image)


# at the end of your script 
    pdb.gimp_image_undo_group_end(image)    
    pdb.gimp_display_new(image)









  

another-gnu-type

Most all of my software is gnu. thanks!

Valid XHTML 1.1!

CC-GNU GPL
This software is licensed under the CC-GNU GPL.