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] Actions palette

2002-04-18 Thread Branko Collin

On 18 Apr 2002, at 13:42, ATIS AUNGABSEE wrote:

 My name is Atis, I am familair with Photoshop software, But now I try
 Gimp.
 
 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.
 
 How to do such that thing on Gimp?
 
 I have a necessary to do that kind of easy procedure making on Gimp.
 
 Please inform me the method.

This is not possible using the GIMP. 

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.

Do a search for 'script-fu tutorial' on the WWW and you will learn 
more about them.

 Content-Type: text/html; charset=us-ascii
 
 PHello/P
 PMy name is Atis, I am familair with Photoshop software, But now I
 try Gimp./P POn 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./P PHow to do such that thing on Gimp?/P PI have a
 necessary to do that kind of easy procedure making on Gimp./P
 PPlease inform me the method./P PThank you in advance./P
 PAtis A./P Pnbsp;/Ppbrhr size=1bDo You
 Yahoo!?/bbr a

It is not necessary to send mail twice, once as plain text and once 
in HTML format, all mail clients understand plain text perfectly.

HTH,

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