Hi I"m trying to learn
python scripting, (I took advise from ofnuts, thank you) and I'm trying to create my first simple plugin "Extreme Canvas texturing". The problem is that is not registering with GIMP, it doesn't appear on the menu Scrip-fu. Any help will be appreciated. I want to let you know that I'm a 59 old but I'm in first grade in
Python scripting, so be gentle! Thank you in advanced.
This is the script so far:
#!/usr/bin/env python
from gimpfu import *
def python_extreme_canvas_texturing(image, drawable):
#Run the unsharp mask, radius 3, amount 3, threshold 0,
#Run desaturate, lightness mode,
radius= 3.0
amount= 3.0
threshold= 0
pdb.plug_in_unsharp_mask(image, drawable, radius, amount, threshold)
#Run apply canvas, light direction top right,
direction= TOP_RIGHT
depth= 10
pdb.plug_in_apply_canvas(image, drawable, direction, depth)
register(
"python_extreme_canvas_texturing",
"Extreme canvas",
"Create and extreme canvas on image",
"Pocholo",
"Pocholo",
"April 7, 2020",
"<Image>/Python-Fu/Extreme canvas texture...",
"RGB",
[
(PF_IMAGE, "ïmage", "take current image", "None"),
(PF_DRAWABLE, "drawable", "input layer", "None"),
],
[],
python_extreme_canvas_texturing)
main()