It is currently Sun Sep 20, 2026 10:44 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Making no Progress with progress bar
PostPosted: Fri Jun 21, 2013 2:41 am  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
GIMP Version: 2.8.4
Operating System: Windows
GIMP Experience: Beginner Level



I would like to provide progress status for the duration of the Gmic plugin but I am failing to get it to work the call I think would be best is

(gimp-progress-init message gdisplay) but I'm unsure as there are lots of different calls in the PDB

I would also like some help as to where to place it

(gimp-progress-init message gdisplay)
(plug-in-gmic run-mode image drawable input command)

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


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: Making no Progress with progress bar
PostPosted: Fri Jun 21, 2013 3:18 am  (#2) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
The way I've used it:

gimp-progress-init to create the progress bar and set the initial text
gimp-progress-set-text to update the text displayed on the progress bar
gimp-progress-update to update the percentage complete

So as you can't update anything while G'MIC is running, what you're suggesting should be the right thing to do.

Kevin


Top
 Post subject: Re: Making no Progress with progress bar
PostPosted: Fri Jun 21, 2013 4:03 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Also, in G'MIC you can set the progress bar during the execution of a G'MIC script :), with command '-progress value' where 'value' is a number in [0,100] (or -1 to disable the progress bar).


Top
 Post subject: Re: Making no Progress with progress bar
PostPosted: Fri Jun 21, 2013 7:44 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Still very confused Ronounours does this mean Gmic will handle the progress bar bar initialization for it's filters in future

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


Top
 Post subject: Re: Making no Progress with progress bar
PostPosted: Sun Jun 23, 2013 9:53 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Now that I have a call for the gmic plugin as a separate procedure with

(air-bubbles-pack-sprites image bubble-layer mask-layer min-size spacing width height)

where would I place the progress bar commands and what commands do I use?

Need help desperately to understand this

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


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group