It is currently Sun Jun 07, 2026 2:56 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Can a script be written that
PostPosted: Mon Aug 01, 2011 6:59 am  (#1) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16018
..would pop up to tell you or ask you... would you like to turn off the current selection before doing...whatever? This process can not be completed with a current selection going.

Is it possible to write a script that would reside in your scripts or plug-ins folder or perhaps Gimps bin directory that would fire if you ever tried to start a process that required the selection to be NONE?

_________________
Image


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: Can a script be written that
PostPosted: Mon Aug 01, 2011 7:37 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Rod wrote:
..would pop up to tell you or ask you... would you like to turn off the current selection before doing...whatever? This process can not be completed with a current selection going.

Is it possible to write a script that would reside in your scripts or plug-ins folder or perhaps Gimps bin directory that would fire if you ever tried to start a process that required the selection to be NONE?
I don't how such a script would be possible. It would have to know the requirement of all scripts/plugins. IMHO if a script/plugin doesn't behave when there is a selection, it should be fixed.

On the other hand, it is possible to write a front-end script for a script/plugin that doesn't call the back-end it if there is a selection.

_________________
Image


Top
 Post subject: Re: Can a script be written that
PostPosted: Mon Aug 01, 2011 10:07 am  (#3) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16018
Thanks Ofnuts. :)

_________________
Image


Top
 Post subject: Re: Can a script be written that
PostPosted: Mon Aug 01, 2011 10:40 am  (#4) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 346
Location: Wisconsin
Good scripts (and plug-ins) will check for invalid or missing input and conditions.
That is where and how it needs to be handled.

_________________
Image


Top
 Post subject: Re: Can a script be written that
PostPosted: Mon Aug 01, 2011 12:35 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16018
Yes i agree, something for the developers to tackle i imagine.

_________________
Image


Top
 Post subject: Re: Can a script be written that
PostPosted: Tue Aug 09, 2011 5:24 am  (#6) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
Just take whatevert script is causing you problems & add a few lines of code to check if there is a selection...


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group