Re: [Gimp-developer] scripting GFig

2002-03-12 Thread Sven Neumann

Hi,

vio [EMAIL PROTECTED] writes:

 Hi,
 Could someone post some links or examples on scripting GFig, please. I mean,
 I know how to call the plug-in from a script: 
 python pdb.plug_in_gfig(image, drawable,dummy)
 
 but then how do I pass commands to gfig, say, to draw a shape which is not 
 included in its catalog? Or even one which is part of the gfig catalog?
 My first guess would be to create a shape description file in ~/gimp/gfig. 
 But then how is gfig instructed to load and process that shape?

you don't. GFig doesn't support any PDB control. If you want to script
GFig, you'd have to add scripting support to it. This is something you
definitely don't want to try. Once you have you seen the source you'll
understand why.


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



Re: [Gimp-developer] scripting GFig

2002-03-12 Thread vmilitaru

Got you. Indeed, GFig is one hummongous source file. 
I wanted to use it to generate some bar and pie charts. But just playing
with Gimp's selector tools seem to do the trick just as well.
Thanks for the tip.
Vio

* Sven Neumann [EMAIL PROTECTED] [020312 05:09]:
 Hi,
 
 vio [EMAIL PROTECTED] writes:
 
  Hi,
  Could someone post some links or examples on scripting GFig, please. I mean,
  I know how to call the plug-in from a script: 
  python pdb.plug_in_gfig(image, drawable,dummy)
  
  but then how do I pass commands to gfig, say, to draw a shape which is not 
  included in its catalog? Or even one which is part of the gfig catalog?
  My first guess would be to create a shape description file in ~/gimp/gfig. 
  But then how is gfig instructed to load and process that shape?
 
 you don't. GFig doesn't support any PDB control. If you want to script
 GFig, you'd have to add scripting support to it. This is something you
 definitely don't want to try. Once you have you seen the source you'll
 understand why.
 
 
 Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



[Gimp-developer] scripting GFig

2002-03-11 Thread vio

Hi,
Could someone post some links or examples on scripting GFig, please. I mean,
I know how to call the plug-in from a script: 
python pdb.plug_in_gfig(image, drawable,dummy)

but then how do I pass commands to gfig, say, to draw a shape which is not 
included in its catalog? Or even one which is part of the gfig catalog?
My first guess would be to create a shape description file in ~/gimp/gfig. 
But then how is gfig instructed to load and process that shape?

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