It is currently Tue Apr 23, 2024 7:59 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 'workflow_setup' plug-in
PostPosted: Fri Oct 02, 2015 9:45 am  (#1) 
Offline
GimpChat Member

Joined: Jul 13, 2014
Posts: 109
Hi,
GIMP has many uses like painting, photography, animation and etc.
In my view a person develop a particular interest in it's usage, the term workflow will refer to it. Workflow start with GIMP's preference and is in part a group thing followed by a personal part.
One consequence is that, after the development of a workflow, the actual menu become inadequate for this routine.

Attach here is plug-ins of my work on that, called 'workflow_setup'. There was previous work on it (example: at http://www.gimp.org/tutorials/Automate_Editing_in_GIMP/ by Stephen Kiel) but more complex.
This plug-in should be working for Linux and Windows, but with surely some missing pieces and finish.
It's based on the idea of RUN_INTERACTIVE action like the one explained by 'MareroQ' in this forum, coupled with workflow and interactivity.
It's not wholly an automatic plug-in but needs your workflow knowledge and experimentation to set-up effectively. So not for beginner, since for example: there are many variations in actions which complicate things.

The menu location is '<Image>/Extensions/Workflow setup' of the two plug-ins: "->workflow manager..." and "Workflow menu...".
They are included in the file 'workflow_setup.py'. You set-up your 'action' workflows with first "->workflow manager..." then close that and launch them with "Workflow menu...".

"->workflow manager...", begins with some hypothetical action workflows that you can use as partial info and template for yours.
The action line is central for this plug-in, it starts with a '[' and ends with a ']', has three parts separate by a comma: action, blurb (the blurb in the template is from Linux) and working_state.
The 'PDB actions' list represents what's available for this plug-in at the time you launch "->workflow manager...". All are line number followed by an action line but not all will work for you or the plug-in "Workflow menu...".
Under 'Workflow actions' a line that end with ':' is a tag or if it begin with a '[' an action line like the PDB action. You can edit the tag line but keep the ':' ending. You can edit the action line whole or in parts: for blurb piecemeal and for working_state don't touch the first character 'number-'; except if your familiar with the action then number > 2.
Naturally you can add whole tag line or from the PDB side copy an action line, minus the line number. You can save 'Workflow actions' and actualize by clicking on the box: 'Workflow actions'.

If in the bottom line of GIMP the "Waiting for workflow_manager..." message disappears with no 'workflow_manager' window appearing; this is a problem that you should report here.

"Workflow menu...", opens the workflow file save in "->workflow manager..." and tries directing the launch of your actions.
Some of the action return value(s), see end of the blurb that appears as tool-tip (for version > 0.1.1), these values should appear in the 'Error console'.
A working_state less than '3-...' is used for automatic testing of an action, while if the user start it with '3- ' (for version > 0.1.2) it stop the plug-in for an image-action; state greater than 3 it's only for a short comment not touch by "Workflow menu...".
In version 0.1.3 the 'exec. type' multiple development is introduced while 'tutorial' will not be considered further. It's most useful for case with few tested actions completing each others.

Edit4: version in attachment is now 0.1.2 with 'gimpplugin' registration. Corrected a bug in workflow_manager (November 02, 2015).
Edit5: revision of the above text and version in attachment is now 0.1.3
Edit6: same version in attachment less two bugs (January 19, 2016).


Attachments:
File comment: version 0.1.3
workflow_setup.zip [17.11 KiB]
Downloaded 85 times


Last edited by rob_brz1 on Tue Jan 19, 2016 12:25 pm, edited 7 times 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: 'workflow_setup' plug-in
PostPosted: Fri Oct 02, 2015 9:22 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
:coolthup :tyspin

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Fri Oct 02, 2015 11:50 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Wallace where did you find the menu

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


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 12:05 am  (#4) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Graechan wrote:
Wallace where did you find the menu

Does this help...
Attachment:
Untitled.png
Untitled.png [ 363.02 KiB | Viewed 2605 times ]

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 12:48 am  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I Installed the file in my user/plugins folder and restarted gimp but it doesn't appear

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


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 12:58 am  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Graechan wrote:
I Installed the file in my user/plugins folder and restarted gimp but it doesn't appear

What doesn't appear, the Extensions Menu, or the Workflow Menu?
I guess if you don't have the Extensions Menu, you won't have the Workflow Menu.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 1:33 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
I had to give the plugin permission to run. I am a bit confused as to it's purpose but it seems to run gmic ok.

_________________
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 3:23 am  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Wallace wrote:
Graechan wrote:
I Installed the file in my user/plugins folder and restarted gimp but it doesn't appear

What doesn't appear, the Extensions Menu, or the Workflow Menu?
I guess if you don't have the Extensions Menu, you won't have the Workflow Menu.

Wallace I don't get the Extensions Menu

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


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 9:35 am  (#9) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Graechan wrote:
Wallace I don't get the Extensions Menu

Well... when I installed the latest version of Arrow Creator plugin, it added the Extensions Menu to Gimp.
Maybe if you install it, this will work to add the Extensions Menu item.

I have this file in my plugins folder that I found inside a folder named Arrow Creator...
Attachment:
Capture.PNG
Capture.PNG [ 32.29 KiB | Viewed 2542 times ]

I think this is the file which added the Extensions Menu item, when I install Arrow Creator,
but I'm not 100% sure about this.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 10:46 am  (#10) 
Offline
GimpChat Member

Joined: Jul 13, 2014
Posts: 109
Wallace: you're welcome, but don't use 'folder' in "Workflow menu...".

Kimba:
Kimba wrote:
I had to give the plugin permission to run. I am a bit confused as to it's purpose but it seems to run gmic ok.

Conclude that you are on Linux (first sentence), sorry for the omission.
If you have no personal workflow it have few purpose other than applying an action to all the image open, if many, in GIMP. If you have workflow, start with plug-in "->workflow manager..." (waiting a bit to appear) choose in the PDB to adapt it to your own , left-click on button 'Workflow actions' for verification, if OK click on button 'save workflow' and quit. Load the pertinent images in GIMP and start plug-in "Workflow menu..." apply actions one after the other ... You can start many plug-in "Workflow menu...", if you want actions from many workflows accessible!

Graechan:
Graechan wrote:
Wallace I don't get the Extensions Menu

I don't know why.


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 11:34 am  (#11) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
rob_brz1 wrote:
Wallace: you're welcome, but don't use 'folder' in "Workflow menu...".

I don't understand Rob_brz1,
I'm not using any kind of folder in the Workflow menu, nor do I have one that I can use?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 11:40 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2606
Location: California
What does the plug in do exactly?


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 12:01 pm  (#13) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
mackenzieh wrote:
What does the plug in do exactly?

From what I can gather is...
If you're working with images in which you need to use repetitive script/plugin functions.
You can setup a work flow, to use these repetitive scripts/plugins functions.
Helping to increase workflow with multiple image or a set of images, dramatically reducing the working time.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 12:28 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2606
Location: California
Wallace wrote:
mackenzieh wrote:
What does the plug in do exactly?

From what I can gather is...
If you're working with images in which you need to use repetitive script/plugin functions.
You can setup a work flow, to use these repetitive scripts/plugins functions.
Helping to increase workflow with multiple image or a set of images, dramatically reducing the working time.


oh, okay.


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 1:10 pm  (#15) 
Offline
GimpChat Member

Joined: Jul 13, 2014
Posts: 109
Wallace wrote:
I don't understand Rob_brz1,
I'm not using any kind of folder in the Workflow menu, nor do I have one that I can use?[/align]

With the first "workflow_setup.py" you could select 'folder' instead of GIMP, see the screen capture in the attachment. Today after the edit, in the new "workflow_setup.py" you couldn't, only GIMP is active.
The 'folder' one need more work.


Attachments:
Capture_workflow_menu-13-16-35.png
Capture_workflow_menu-13-16-35.png [ 41.63 KiB | Viewed 1044 times ]
Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 2:36 pm  (#16) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
rob_brz1 wrote:
Wallace wrote:
I don't understand Rob_brz1,
I'm not using any kind of folder in the Workflow menu, nor do I have one that I can use?[/align]

With the first "workflow_setup.py" you could select 'folder' instead of GIMP, see the screen capture in the attachment. Today after the edit, in the new "workflow_setup.py" you couldn't, only GIMP is active.
The 'folder' one need more work.

Alright, thanks for clarifying that. ;)

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 3:44 pm  (#17) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
A few initial observations from tinkering with the workflow_setup plug-in.
  1. The Workflow Manager appears takes over your Gimp session (note the bottom of the canvas window), until you restart Gimp.
  2. This might be wrong but; the only way I found to remove a procedure from your Workflow actions list is to overwrite it's blank space in the list. For example if it's the first item, backspace to make the second item first or if it's the last item backspace to overwrite the line it was formerly on. Use the Workflow actions button to verify.
  3. This is fairly obvious but do not include line numbers from the PDF actions list in your Workflow actions list.
  4. If you need a better look at the PDB actions list, search 'actions_all.lst' in a text editor.
/plug-ins
├── workflow_setup
│   ├── actions_all.lst
│   └── menu_workflow
└── workflow_setup.py
and/or search Gimp Procedure browser to find the proper name sequence for an action.

Here's an example of 3 items I've added for fun.
Image
Image

I've left the original 'testing' and 'examples' in place, these procedures can be removed. I'm guessing the script will regenerate examples it the Workflow actions list is blank? Only playing with it briefly that's my experience so far, maybe rob_brz1 can comment?

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 6:53 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
although plugin did not register in 2-8-14 it does in 2-8-10

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


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 8:51 pm  (#19) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Graechan wrote:
although plugin did not register in 2-8-14 it does in 2-8-10

So you must have been using 2.8.14 then, right?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: 'workflow_setup' plug-in
PostPosted: Sat Oct 03, 2015 9:36 pm  (#20) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Wallace wrote:
Graechan wrote:
although plugin did not register in 2-8-14 it does in 2-8-10

So you must have been using 2.8.14 then, right?

originally yes I tried my 2-8-14 from gimp (it failed to register but created a workflow folder) but when I loaded the plugin in my portable 2-8-10 or 2-8-15 it all worked worked fine

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


Top
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) SETUP MULTIPLE GUIDES

2

No new posts Attachment(s) Don't work procedures plug-in-bump-map, plug-in-displace

2

No new posts Attachment(s) I need help about ofn-plug-ins

19

No new posts Attachment(s) Resynthesizer Plug in

0

No new posts Circle Map plug-in

2



* Login  



Powered by phpBB3 © phpBB Group