Hi guys, it's me again. I'm trying to learn how to call a G"MIC filter in
python. I cannot find anything in the internet that can give me a solid sample or how to make the function work. So far i have and it's not making anything to the image:
pdb.plug_in_gmic_qt(img, layer, 0, 0 "relief_light 0.1, 0, 0, 0, 0.3, 0, 0, 0, 0.03, 0, 0.3")
I'm trying to create an Orange peel texture using one of conbagui's tutorial that uses the G'MIC plugin. this is the rest of the script;
from gimpfu import *
def orange_peel_texture(scale):
imgSize = 500
#Create the orange peel
img = pdb.gimp_image_new(imgSize, imgSize, RGB)
layer = pdb.gimp_layer_new(img, imgSize, imgSize, RGB, "Orange peel", 100, LAYER_MODE_NORMAL)
pdb.gimp_image_add_layer(img, layer, 0)
pdb.gimp_context_set_foreground((241, 152, 56))
pdb.gimp_drawable_fill(layer, FILL_FOREGROUND)
pdb.plug_in_hsv_noise(img, layer, 8, 3, 4, 150)
pdb.plug_in_gmic_qt(img, layer, 0, 0 "relief_light 0.1, 0, 0, 0, 0.3, 0, 0, 0, 0.03, 0, 0.3")
gimp.Display(img)
register(
"orange_peel_texture",
"Creates an orange peel texture",
"Creates an orange peel texture",
"Pocholo",
"Pocholo",
"2020",
"Orange peel",
"",
[
(PF_SPINNER, "scale", "Scale", 500, (1, 1000, 1)),
],
[],
orange_peel_texture, menu="<Image>/Python-Fu/orange_peel_texture")