@Graechan
I've got the Wild Cactus to work by replacing the existing call:
(plug-in-gmic 1 image gmic-layer 1
(string-append
"-v - " ; To have a silent output. Remove it to display errors from the G'MIC interpreter on stderr.
"-samj_CeKoaSa_007 1.20,0,10,10,300,10,30,0,0")
)
with this command definition and invocation:
(plug-in-gmic 1 image gmic-layer 1
(string-append
"-command \"graechan_wildcactus : "
"-pow[-1] 1.20 "
"-c[-1] 0,255 "
"[-1] " ; was "--gimp_do_nothing[-1] "
"-gimp_gradient_norm[-1] 0,0.5,0,100,0 "
"-gimp_rodilius[-1] 10,10,300,10,30,0,1,0,0 "
"-blend[-1,-2] grainextract,1,0 "
"\" -graechan_wildcactus")
)
)
The above command is the core sequence from samj's CeKoaSa_007 preset:
-pow[-1] $Colors_Couleurs
-c[-1] 0,255
--gimp_do_nothing[-1]
-gimp_gradient_norm[-1] $Smoothness_GN,0.5,0,100,0
-gimp_rodilius[-1] $Amplitude_R,$Thickness_R,$Sharpness_R,$Orientations_R,$Offset_R,$Smoothness_R,1,0
-blend[-1,-2] grainextract,1,0
but with your parameters substituted in place of the $xxx parameters.
Alternatively, you can do it all in one line like this:
(plug-in-gmic 1 image 0 1 "-command \"graechan_wildcactus : -pow[-1] 1.20 -c[-1] 0,255 [-1] -gimp_gradient_norm[-1] 0,0.5,0,100,0 -gimp_rodilius[-1] 10,10,300,10,30,0,1,0,0 -blend[-1,-2] grainextract,1,0 \" -graechan_wildcactus")
Notes:
- when defining a command, GMIC expects the command to be contained between double quotes, which conflicts with Scheme also using double quotes to delimit string definitions, so you have to "escape" the GMIC command's quotes using backslash like this: \"
- the GMIC dummy procedure gimp_do_nothing no longer exists; it was only being used in this preset to create a new layer copy of the input (active) layer; nowadays, just [-1] will achieve the same result.
The other missing presets are going to be a bit more difficult - they're all rather long with lots of options and you/we need to sort out which bits you do need and then discard the rest.
Attachment:
File comment: Updated copy
Gmic Logos.scm [28.03 KiB]
Downloaded 107 times