use canonical name for run-mode.
2005-09-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-pdb.c (pf_call): use canonical name for
run-mode.
* plug-ins/pygimp/plug-ins/clothify.py
* plug-ins/pygimp/plug-ins/foggify.py: revert the below, since
we eat the run-mode parameter again.
This commit is contained in:
parent
958d6837ea
commit
678de416f4
4 changed files with 17 additions and 8 deletions
|
|
@ -1,3 +1,12 @@
|
|||
2005-09-30 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/pygimp-pdb.c (pf_call): use canonical name for
|
||||
run-mode.
|
||||
|
||||
* plug-ins/pygimp/plug-ins/clothify.py
|
||||
* plug-ins/pygimp/plug-ins/foggify.py: revert the below, since
|
||||
we eat the run-mode parameter again.
|
||||
|
||||
2005-09-30 Carol Spears <carol@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/plug-ins/clothify.py
|
||||
|
|
|
|||
|
|
@ -33,23 +33,23 @@ def python_clothify(timg, tdrawable, bx=9, by=9,
|
|||
img.add_layer(layer_one, 0)
|
||||
pdb.gimp_edit_fill(layer_one, BACKGROUND_FILL)
|
||||
|
||||
pdb.plug_in_noisify(1, img, layer_one, 0, 0.7, 0.7, 0.7, 0.7)
|
||||
pdb.plug_in_noisify(img, layer_one, 0, 0.7, 0.7, 0.7, 0.7)
|
||||
|
||||
layer_two = layer_one.copy()
|
||||
layer_two.mode = MULTIPLY_MODE
|
||||
layer_two.name = "Y Dots"
|
||||
img.add_layer(layer_two, 0)
|
||||
|
||||
pdb.plug_in_gauss_rle(1, img, layer_one, bx, 1, 0)
|
||||
pdb.plug_in_gauss_rle(1, img, layer_two, by, 0, 1)
|
||||
pdb.plug_in_gauss_rle(img, layer_one, bx, 1, 0)
|
||||
pdb.plug_in_gauss_rle(img, layer_two, by, 0, 1)
|
||||
|
||||
img.flatten()
|
||||
|
||||
bump_layer = img.active_layer
|
||||
|
||||
pdb.plug_in_c_astretch(1, img, bump_layer)
|
||||
pdb.plug_in_noisify(1, img, bump_layer, 0, 0.2, 0.2, 0.2, 0.2)
|
||||
pdb.plug_in_bump_map(1, img, tdrawable, bump_layer, azimuth,
|
||||
pdb.plug_in_c_astretch(img, bump_layer)
|
||||
pdb.plug_in_noisify(img, bump_layer, 0, 0.2, 0.2, 0.2, 0.2)
|
||||
pdb.plug_in_bump_map(img, tdrawable, bump_layer, azimuth,
|
||||
elevation, depth, 0, 0, 0, 0, True, False, 0)
|
||||
|
||||
gimp.delete(img)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ def python_foggify(img, layer, name, colour, turbulence, opacity):
|
|||
fog.add_mask(mask)
|
||||
|
||||
# add some clouds to the layer
|
||||
pdb.plug_in_plasma(1, img, mask, int(time.time()), turbulence)
|
||||
pdb.plug_in_plasma(img, mask, int(time.time()), turbulence)
|
||||
|
||||
# apply the clouds to the layer
|
||||
fog.remove_mask(MASK_APPLY)
|
||||
|
|
|
|||
|
|
@ -766,7 +766,7 @@ pf_call(PyGimpPDBFunction *self, PyObject *args, PyObject *kwargs)
|
|||
fprintf(stderr, "--- %s --- ", PyString_AsString(self->proc_name));
|
||||
#endif
|
||||
|
||||
if (self->nparams > 0 && !strcmp(self->params[0].name, "run_mode")) {
|
||||
if (self->nparams > 0 && !strcmp(self->params[0].name, "run-mode")) {
|
||||
params = pygimp_param_from_tuple(args, self->params + 1,
|
||||
self->nparams - 1);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue