It is currently Wed Apr 24, 2024 7:28 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: Re: 8bf sequentially ?
PostPosted: Sat Feb 26, 2011 4:22 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Many thanks for the tips so far.

Since 8bf i pspi and recorded in the Procedure-Browser and Plugn-Browser
My problem is how to invoke them (how to write a command - for example a) using python plugin or script-fu

ps.for Impressionist - problem solved:
http://registry.gimp.org/node/22324#comment-6562


Attachments:
Plugin and Browwser.png
Plugin and Browwser.png [ 54.42 KiB | Viewed 3789 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Sat Feb 26, 2011 9:46 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Decided to go ahead and post the directions here - thanks Rob!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Mon Feb 28, 2011 4:02 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
MareroQ wrote:
ps.for Impressionist - problem solved:
http://registry.gimp.org/node/22324#comment-6562


Glad it helped. I had posted that quite a while back.

-Rob A> (aka ffaat)

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Mon Feb 28, 2011 4:17 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Example in file pspirc: [c:\Documents and Settings\MarQ\.gimp-2.7\pspirc]

<ps-plug-in path="C:\Documents and Settings\MarQ\.gimp-2.7\Plugin_ps_active\50s Here.8bf" timestamp="1298918928">
<entrypoint menu-path="<Image>/Filters/Andrews Filters A/50s Here..." image-types="RGB* " entrypoint="ENTRYPOINT1"/>

<ps-plug-in path="C:\Documents and Settings\MarQ\.gimp-2.7\Plugin_ps_active\A Little Grain.8bf" timestamp="1298918928">
<entrypoint menu-path="<Image>/Filters/Andrews Filters A/A little Grain..." image-types="RGB* " entrypoint="ENTRYPOINT1"/>

<ps-plug-in path="C:\Documents and Settings\MarQ\.gimp-2.7\Plugin_ps_active\halftone.8bf" timestamp="1283117858">
<entrypoint menu-path="<Image>/Filters/Richard Rosenman/Halftone..." image-types="RGB* " entrypoint="ENTRYPOINT00"/>


Edit - rename - add any active filter 8bf:
[Photoshop Plug-in Seqwenser.py]

gimp.pdb.photoshop_plug_in_50s_here_entrypoint1( image, drawable,
run_mode=RUN_WITH_LAST_VALS)
gimp.pdb.photoshop_plug_in_a_little_grain_entrypoint1( image, drawable, run_mode=RUN_WITH_LAST_VALS)
gimp.pdb.photoshop_plug_in_ halftone _entrypoint00( image, drawable, run_mode=RUN_WITH_LAST_VALS)

Who will add a drop-down list of plug-ins for each step ?

ps. Richard Rosenman [http://www.richardrosenman.com/software/downloads/]


Attachments:
Photoshop Plug-in Seqwenser.zip [44.93 KiB]
Downloaded 204 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Mon Feb 28, 2011 4:32 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Photoshop Plug-in Seqwenser
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# based on the idea "Make shortcut" http://registry.gimp.org/node/24300

def plugin_main(image, drawable):
  gimp.pdb.photoshop_plug_in_50s_here_entrypoint1( image, drawable, run_mode=RUN_WITH_LAST_VALS) 
  gimp.pdb.photoshop_plug_in_a_little_grain_entrypoint1( image, drawable, run_mode=RUN_WITH_LAST_VALS)
  gimp.pdb.photoshop_plug_in_halftone_entrypoint00( image, drawable, run_mode=RUN_WITH_LAST_VALS)

if __name__ == "__main__":
  from gimpfu import *   
 
  register(
    "python-fu-photoshop-plug-in-entrypoint", 
    "Sequential selection of filters",
    "Sequential selection of filters V.0.1...",
    "Bootchk - modified MareroQ",
    "Uncopyrighted",
    "No copyright date",
    "<Image>/Filters/Extensions/Photoshop Plug-in Seqwenser",
    "RGB* ",
    [],
    [],
    plugin_main,
     
    ) 
   
 
  main()

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 11:31 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
GIMP-plugin-seqwencer ???
There are other options (except 8bf)
Each command display in the window Make shortcut -You can also easily add Plug-in Seqwenser.py
Make shortcut
http://registry.gimp.org/node/24300
Bootchk writes:
…” Even more in the future: let you script a sequence of calls to other plugins and even GIMP menu items. Known as a visual script editor or a macro editor. Would not require knowledge of a programming language…”
Will it happen?
Who can help:
Had to build a gui (with a list of commands to choose from), a dialog box - which in the step and the ability to write (read) to the terminal settings file (robANT ?!!)
it would be something similar to the ATN (in Photoshop).
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# based on the idea "Make shortcut" http://registry.gimp.org/node/24300

def plugin_main(image, drawable):
  gimp.pdb.photoshop_plug_in_50s_here_entrypoint1( image, drawable, run_mode=RUN_WITH_LAST_VALS)  # Step 1
  gimp.pdb.photoshop_plug_in_a_little_grain_entrypoint1( image, drawable, run_mode=RUN_WITH_LAST_VALS)  # Step 2
  gimp.pdb.photoshop_plug_in_halftone_entrypoint00( image, drawable, run_mode=RUN_WITH_LAST_VALS)  # Step 3
  gimp.pdb.script_fu_bw_film( image, drawable, 0, 0, 0, 0, 0, 0, 0, 0, run_mode=RUN_WITH_LAST_VALS)  # Step 4
  gimp.pdb.jp_polaroid( image, drawable, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, run_mode=RUN_WITH_LAST_VALS)  # Step 5
  # Here you can add another gim.pdb ... ... a shortcut ( of plugin-shortcut-to-....) or file pspirc…
 
if __name__ == "__main__":
  from gimpfu import *   
 
  register(
    "python-fu-plug-in-Seqwenser", 
    "Sequential selection of filters",
    "Sequential selection of filters V.0.1...",
    "Bootchk - modified MareroQ",
    "Uncopyrighted",
    "No copyright date",
    "<Image>/Filters/Extensions/Gimp Seqwenser",
    "RGB* ",
    [],
    [],
    plugin_main,
     
    ) 
   
 
  main()


ps. choice of filters does not make sense - just to show the possibilities


Attachments:
Make shortcut.png
Make shortcut.png [ 18.5 KiB | Viewed 3747 times ]
How to come up with action - plugin-seqwenser.png
How to come up with action - plugin-seqwenser.png [ 16.39 KiB | Viewed 3747 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 2:51 pm  (#17) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
i fear will not work because most (if not all) 8bf can't remember the last setting used,and i doubt they could be called in a not iterative mode

But maybe the Gimp Userfilter (aka FF converter) that may run all the F.F filters could be hacked to do it,
(because can also convert the FF script in another language, maybe that language is more flexible and that may allow sequential call...a big maybe but i believe is the only hope

the fact that even Xnview that has a quite advanced batch mode cannot call in batch mode or sequentially 8bf filters lead me to think that will be impossible also for gimp.

It is long time that i did not use the Userfilter , and anyway is not compatible with the most recent plugin but only with the old filter factory ,...on the other hand several of the best modern PS plugin are available also as standalone program so i suppose they may be called (not the 8bf but the standalone version )by variant of the RobA Xnview shell script

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 3:46 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
It's an interesting idea, but i'm afraid PC is probably correct.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 3:50 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12517
Photoshop retains the last settings a a PS filter while in the same session, but no other program that I know of that uses PS filters do.

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 3:57 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Try just Gimp scripts for now.
Can you add python filters to the list? :)

I see you have scm's added.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 4:04 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
It's easy to use-Make shortcut - really works
fast movie http://img33.imageshack.us/i/wwj.mp4/

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue Mar 01, 2011 9:54 pm  (#22) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
yes that is really cool
but ...works also for sequential call of 8bf ?

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Wed Mar 02, 2011 11:06 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
You can add python filters and *.exe to the list

Forge.exe
gimp.pdb.plug_in_forge( image, drawable, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, run_mode=RUN_WITH_LAST_VALS)


mm extern LabCurves.py
gimp.pdb.python_fu_mm_extern_LabCurves( image, drawable, "foo", run_mode=RUN_WITH_LAST_VALS)


Impressionist
gimp.pdb.photoshop_plug_in_impressionist_entrypoint1( image, drawable, run_mode=RUN_WITH_LAST_VALS)

or
gimp.pdb.photoshop_plug_in_impressionist_entrypoint1( image, drawable, run_mode=RUN_INTERACTIVE)



Some plug-ins do not work in a call mode
run_mode = RUN_WITH_LAST_VALS

but you can mode
run_mode = RUN_INTERACTIVE

Such are, for example G'MIC
gimp.pdb.plug_in_gmic( image, drawable, 0, "foo", run_mode=RUN_INTERACTIVE)

next avi: http://img140.imageshack.us/i/24w.mp4/

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Wed Mar 02, 2011 11:21 am  (#24) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Okay so what do you have to do to set it up?
Do you have to set all those 8bf filters in a certain folder and point gimp to them with PSPI and then restart gimp to re-write the pspirc?
Then you add the lists of your filters to your python script?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Wed Mar 02, 2011 11:46 am  (#25) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
For 8bf are two ways:
1. looking for (the data needed plug-ins) file or pspirc
2. create a shortcut by Make shortcut - which can be written to the file
for example:
plugin-shortcut-to-photoshop-plug-in-impressionist-entrypoint1.py
and there is a desired line - 13


Attachments:
plugin-shortcut-to-photoshop-plug-in-impressionist-entrypoint1.zip [868 Bytes]
Downloaded 104 times
Impres.png
Impres.png [ 11.64 KiB | Viewed 1470 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Wed Mar 02, 2011 12:57 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks MareroQ.
So this will allow you to add just about anything in pspirc or any other script or plug-in any sequence?
You just add the parameters to the python file correct?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Mon May 09, 2011 4:15 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Today, Lloyd Konneker - Bootchk announced on http://registry.gimp.org/node/25305
a new version of the Make shortcut that is Gimpscripter
https://github.com/bootchk/gimpscripter
promises to be a great work - the time for testing ...


Attachments:
Gimpscripter.png
Gimpscripter.png [ 26.5 KiB | Viewed 1428 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue May 10, 2011 1:11 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Awesome! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue May 10, 2011 4:59 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I have actually been playing with this it's pretty cool. :)
You create a python script using input for different ingredients.
Fooling around i actually created one that takes a selection and copies and pastes it as a floating layer.I am still trying to figure out how to create a new layer from the floating selection so it could be a useful script.
Then the user could just make any selection on the image - Go to shortcuts/copy-selection
The selection would be copied, pasted as a new layer in place with (no floating selection).
Guess it is already a part of Gimp but i am just fooling around seeing what i can do.That seemed to be the easiest script to start with. :lol
The only real useful part of the script would be the floating layer - you wouldn't have to anchor it yourself. (lazy i know) :) - But like i said i am just fooling around with it.

Anyways its pretty fun to mess with.I tried to create one with Lyles Soft Focus settings for GMIC but there was an error calling the plug-in for the script.Still have to figure that one out.Something to do with the GMIC command i am sure.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: 8bf sequentially ?
PostPosted: Tue May 10, 2011 5:02 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
On a side note this would make a great macro recorder if it could take the last so many number of history points and group them in its interface.Then you could just call the last so many history points - name the plug in - re-start Gimp and the plug-in is there ready to use. :)

Something like call history?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


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

All times are UTC - 5 hours [ DST ]


cron

* Login  



Powered by phpBB3 © phpBB Group