Releases: kamilburda/gimp-python-wrappers
Releases · kamilburda/gimp-python-wrappers
5.4
5.3
- Allowed registration of procedures of type
Gimp.ExportProcedure
,Gimp.BatchProcedure
andGimp.VectorLoadProcedure
. - Further clarified the Readme.
- The
generate-pdb-stubs.py
file is now executable.
5.2
- Clarified contents of Readme for improved readability.
5.1
- The stub generator is now guaranteed to be accessible in GIMP even if no images are opened.
5.0
- Updated the
pdb
object, script and the generated stubs according to changes in GIMP 3.0.0-RC3. - Added more information to several parameter types in the generated stub file. For example, the description for numeric parameters now contains minimum and maximum values (if different from the default minimum and maximum values), the description for
Gio.File
parameters indicates whether they are files or folders for opening/saving, etc. - Object array parameters (images, drawables, ...) are now annotated in the stub file as lists.
- Updated type annotations for parameters that can be
None
(e.g.Gimp.Image
orGimp.Layer
) in the stub file. - Slightly optimized access to PDB procedures and GEGL operations via the
pdb
object. - Improved GUI for the output directory for the stub generator.
- Arguments whose names match a Python keyword can now be passed with a trailing
_
, e.g.lambda_
(passinglambda=<value>
would result in a syntax error).
4.2
- Fixed
CRITICAL
warnings issued by GIMP when applying layer effects.
4.1
- Added allowed string values to the function documentation of the generated stub file for
Gimp.Choice
arguments or GEGL enums converted toGimp.Choice
arguments. - Default values for string arguments in the function documentation are now quoted for improved readability.
- Fixed a potential bug where certain GEGL enums were unnecessarily converted to a string (since GIMP converts many of these enums to strings for readability).
4.0
- Added support for layer effects (filters, GEGL operations). These can be called via the
pdb
object. For example, thegegl:gaussian-blur
effect can be called aspdb.gegl__gaussian_blur(layer, std_dev_x=5.0, std_dev_y=5.0)
. - Procedures can now only be called with keyword arguments (i.e. it is no longer possible to call procedures with positional arguments). This change is meant to encourage plug-in developers to make the client code more readable. The only positional argument allowed is a
Gimp.Layer
instance for layer effects. - Updated the script and the generated stubs according to changes in GIMP 3.0.0-RC2.
- The
procedure
module now automatically initializes theGegl
module by invokingGegl.init()
before the start of a procedure. - The generated stub file
pypdb.pyi
now also contains private attributes from the_PyPDB
class,PDBProcedure
class and all its subclasses. This avoids IDE warnings related to unrecognized attributes.
3.2
- Fixed procedure registration if the same list of arguments was reused for multiple plug-in procedures.
3.1
- Fixed calling PDB procedures with keyword arguments containing underscores.