Hi again, I’m busy trying to build a custom G’MIC command from a script I used with the custom command box:
# plasma rendering and pixelisation followed by random warp with gamma and hue randomisation and final HSV scaling
-fx_plasma 0.5,0,8,1,0,128,128,128
pixel_x={round(u*7.498+3.501)}
pixel_y={round(u*7.498+3.501)}
-samj_Contours_Gros_Pixels 0.5,10,2,{$pixel_x},{$pixel_y},100,1.25,0,0,15,0,0,22,1
f=5 # iterations
i=1 # warp intensity
m=5 # offset magnitude
s=0.25 # gamma
v=1 # hue
hue_min=0
hue_max=5
sat_min=0.5
sat_max=5
val_min=0
val_max=5
-repeat {$f*sign($f)}
a=(u-0.5)*$i
b=(u-0.5)*$i
c=(u-0.5)*$m*sign($m)
d=(u-0.5)*$m*sign($m)
e={round(u)}
f={round((u*2.98)+0.51)}
g={round((u*33.98)-0.49)}
h=(u-0.5)*$s*200
i=(u-0.5)*$v*200
-fx_warp_by_intensity {$a},{$b},{$c},{$d},{$e},0,{$f},{$g},0
-fx_adjust_colors 0,0,{$h},{$i},0,0
-done
j={$hue_min+(u*($hue_max-$hue_min))}
k={$sat_min+(u*($sat_max-$sat_min))}
l={$val_min+(u*($val_max-$val_min))}
-fx_mix_hsv {$j},0,0,{$k},0,0,{$l},0,0,0,2,0
-fx_warp_by_intensity {$a},{$b},{$c},{$d},{$e},0,{$f},{$g},0
Here is my attempt to turn it into a GUI script; my problem is that it’s not showing up in the commands when I place the file in ~/.config/gmic. How can I make it work?