Re: Fwd: Drawing per Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 14, 2010 at 9:26 AM,  <oliver@xxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
>
>
>> What does prevent you from using the calls for
>> gimp_vectors_bezier_stroke_new_moveto and
>> gimp_vectors_bezier_stroke_lineto to draw lines?
>
> I looked for "draw" and did not find functions that do it.
> So, in short words: I did not found thos functions.
>
>
>> (Don't  forget to alias then in your code to shorter names, last you
>> have really undereadable stuff)
>
> If it does not eat up too much ressources in Python...
>
> ...you mean using def for creating a function that just calls the other one?
> or are "alias"es what Python offers as a separate feature?

Neither of the above.
Functions are values, in Python. Therefore

lineto = pdb.gimp_vectors_bezier_stroke_lineto

is all that you need, so that you can call lineto instead of calling
pdb.gimp_vectors_bezier_stroke_lineto (and having to type all that out
:)
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux