It is currently Mon Aug 10, 2026 4:15 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Undo confusion
PostPosted: Mon Jul 18, 2011 2:40 am  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
I am having trouble with where and what to use for my undo path's in this script, Hoping someone can help me.
And yes :yes I finally got it to work.
Thankyou Saulgoode I did not realize my guess was even that close.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Mon Jul 18, 2011 8:11 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Undo confusion
PostPosted: Mon Jul 18, 2011 3:23 am  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
You have two different situations; one for the logo script and one for the version that works on the current image/drawable.

For the logo script ('script-fu-chiseled-2.6-logo'), because you are creating your image from scratch (as opposed to modifying an existing image), there is no need for your script to be UNDOable -- you can undo the action of the script merely by closing the newly created image. So the thing to do is disable undo ('gimp-image-undo-disable') immediately after creating your new image* (and enable it at the end of your script).

For the other version of the filter ('script-fu-graechan-chiseled'), you want to group all of your "image modifying" operations within an Undo group. You don't want to have anything happen to the image either before or after this Undo group. What you have written should work fine.


* (It is really not that critical to to disable the Undo right away, since disabling it has the effect of wiping it clean.)

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Undo confusion
PostPosted: Mon Jul 18, 2011 3:40 am  (#3) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16154
Pretty cool script... hope you do not mind i played with this first posting of it. :)
By the way this was ran in Gimp-2.7.3.

Image

Can't wait until it's finished...nice results.

_________________
Image


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group