Re: [Gimp-developer] Actions palette

2002-04-19 Thread Raphaël Quinet

On Fri, 19 Apr 2002 03:14:20 +0200, Branko Collin [EMAIL PROTECTED] wrote:
 On 18 Apr 2002, at 13:42, ATIS AUNGABSEE wrote:
  On Photoshop we can use the actions palette to easily reccord every
  action we do on with the picture while working by just clicking the
  reccord button on the palette and play those action again on others
  file that we want to do that same procedure with the files.
[...]
 The GIMP is able to perform a series of image manipulation action 
 over and over again, but you have to program these rather than record 
 them.

Maybe it will soon be possible to record some scripts automatically in the
developer's version of the GIMP (the one that is in CVS, definitely not
the 1.2.x version).  But soon is not defined yet...

Two weeks ago, I spent some hours adding a very preliminary support for
a kind of script recorder.  The basic idea is to add a new global pointer
to a GimpRecorder struct.  If this pointer is not NULL, then all actions
that are performed through the PDB are added to a list that is included in
this structure (name of proc + parameters).  Later, this list can be
converted to a script when the user stops recording.  This can be Script-Fu,
Perl-Fu or other languages: it should not be too hard to translate the list
of PDB calls to any scripting language.

But this is not working yet: there are still some actions that I cannot
capture (no PDB call is generated) and there are some PDB calls that I have
to filter out (because I only want to record the top-level actions
initiated by the user from the GUI).  I am still not sure if the best
solution is to keep track of the depth of the PDB calls and filter out
the nested calls (so that if the user calls a script, the PDB calls made by
this script will not be recorded) or if I should check the state of the
undo stack, or both.  I still have to experiment a bit with that.  But the
main problem is still to be able to capture all actions as PDB calls.
There are many operations that can be done from the GUI without generating
any PDB interaction, and I have to change that.

I started doing that two weeks ago, but I haven't been able to continue
since then (not enough spare time).  I hope that I will have a few more
hours in the coming weeks to experiment a bit more.  Although this is still
in a very preliminary stage, maybe there is hope that you will see a script
recorder before GIMP 9.0 is out...

-Raphaël
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] action files in GIMP?

2002-04-19 Thread Raphaël Quinet

On Fri, 19 Apr 2002 13:00:29 +0200, Steinar H. Gunderson [EMAIL PROTECTED] 
wrote:
 On Fri, Apr 19, 2002 at 03:17:35AM +0200, Branko Collin wrote:
 I guess the easiest way to do that would be to store the output of 
 your program as a script-fu script.
 
 Or Perl-Fu -- I'd guess most people are slightly more comfortable writing
 Perl than Scheme...

But that would only work for a minority of GIMP users.  Nowadays, for better
or worse, the majority of GIMP users seem to be Windows users (in contrast
with the developers, who are almost exclusively Linux users or UN*X users).
And getting Gimp-Perl to work under Windows is not a trivial task (this can
also be a problem on several other non-Linux systems), so it is easier for
most people to use Script-Fu because it works out of the box on all
systems.

Besides, for someone who is not a programmer and does not know anything
about Perl and Scheme, I do not think that there is a big difference in the
learning curve.  Some people may be more comfortable writing Perl than
Scheme, but that's usually because they already know Perl or a similar
language, not because Perl is easier to learn.  That being said, the Scheme
implementation used for Script-Fu is far from perfect and not easy to
debug, so that could be a good reason for some people to use Perl (as long
as they are using Linux).

-Raphaël
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] action files in GIMP?

2002-04-19 Thread Branko Collin

On 19 Apr 2002, at 13:30, Raphaël Quinet wrote:
 On Fri, 19 Apr 2002 13:00:29 +0200, Steinar H. Gunderson
 [EMAIL PROTECTED] wrote:
  On Fri, Apr 19, 2002 at 03:17:35AM
  +0200, Branko Collin wrote:

   I guess the easiest way to do that
   would be to store the output of
   your program as a script-fu script.
 
  Or Perl-Fu -- I'd guess most people are slightly more
  comfortable writing Perl than Scheme...

Yes, but computers should be equally comfortable with either
language, and:

 But that would only work for a minority of GIMP users.  Nowadays, for
 better or worse, the majority of GIMP users seem to be Windows users
 (in contrast with the developers, who are almost exclusively Linux
 users or UN*X users). And getting Gimp-Perl to work under Windows is
 not a trivial task (this can also be a problem on several other
 non-Linux systems), so it is easier for most people to use Script-Fu
 because it works out of the box on all systems.

 Besides, for someone who is not a programmer and does not know
 anything about Perl and Scheme, I do not think that there is a big
 difference in the learning curve.

For somebody who has never programmed in his/her life, a logical
language is probably just as easy, if not easier. How many problems
in life reduce easily to a shopping list?

(Please reply to the OP also, who, as he mentioned, does not
subscribe to this list.)

--
branko collin
[EMAIL PROTECTED]
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



[Gimp-developer] infocenter

2002-04-19 Thread [EMAIL PROTECTED]
Title: mail studio pixArt






  
  



  


  

  



  


  

  



  


  

  



  for other sizes and run calculate euro 25,82 for 
  makereadyplus euro 6,2 per sq.mt. or euro 0,58 per 
  sq.ft.

  



  1 
  EUR=0,88 USD - 1 USD=1,13 EUR. 
  unsubcribe

  








Re: [Gimp-developer] action files in GIMP?

2002-04-19 Thread pcg

On Fri, Apr 19, 2002 at 02:18:41PM +0200, Branko Collin [EMAIL PROTECTED] wrote:
 For somebody who has never programmed in his/her life, a logical
 language is probably just as easy, if not easier. How many problems

The scheme dialect used in gimp is neither a logical language, nor a
real (strict) functional language, nor type-safe

It does, however, run under windows, unlike gimp-perl, which should be
very easy to port without Gtk. Porting Gtk should be easy too, if the
destination is named cygwin.

Unfortunately, the developers who do the windows port don't use the same
config mechanisms as under unix/cygwin, and Gtk is proven to be hard to
port to that environment.

So an automatic translation to script-fu would be the most portable
choice, since users don't care for the implementation.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED]  |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] action files in GIMP?

2002-04-19 Thread Tor Lillqvist

[EMAIL PROTECTED] ( Marc) (A.) (Lehmann ) writes:
  Unfortunately, the developers who do the windows port don't use the same
  config mechanisms as under unix/cygwin, 

Actually, I do. (Hans doesn't.)

  and Gtk is proven to be hard to port to that environment.

... but I still fear that porting gimp-perl might be quite a task.

--tml

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer