Perusing the G’MIC standard library, I found the default parameters for the fx_sine_curve
filter:
#@gui Sine Curve:fx_sine_curve,fx_sine_curve_preview
#@gui :_=note("<span color="#EE5500"><b>Curve parameters:</b></span>")
#@gui :Preset=choice{1,"Default (Circle)","Alien Rasta","All Round","Carnivorous Plant","Cat Pad","Flower","Flower Cushion","Fly Karateka","Hearts","Moving Leaf","Radioactive Flower","Rosace","Spaceship","Transformer","Tubular Waves","Twisted Heart","Twisted Heart 2","Twisted Tunnel","Waterslide"}
#@gui :_=value(-1)
#@gui :Resolution (%)=float(75,0,100)
#@gui :Periods=float(1,0,3)
#@gui :_=separator()
#@gui :Parameter Settings=choice(1,"Ratios","Multipliers","Offsets","Exponents","Signs","3D Angles")
#@gui :_=note("<small><span color="#EE0055"><b>Ratios:</b></span></small>")
#@gui :Xa/Xb=float(0.5,0,1)_0-
#@gui :Ya/Yb=float(0.5,0,1)_0
#@gui :Za/Zb=float(0.5,0,1)_0
#@gui :_=note("<small><span color="#EE0055"><b>Multipliers:</b></span></small>")
#@gui :Xa-Multiplier=int(1,0,1024)_2-
#@gui :Ya-Multiplier=int(1,0,1024)_2
#@gui :Za-Multiplier=int(0,0,1024)_2
#@gui :Xb-Multiplier=int(800,0,1024)_2
#@gui :Yb-Multiplier=int(800,0,1024)_2
#@gui :Zb-Multiplier=int(1,0,1024)_2
#@gui :_=note("<small><span color="#EE0055"><b>Offsets:</b></span></small>")
#@gui :Xa-Offset (deg.)=float(90,0,360)_0-
#@gui :Ya-Offset (deg.)=float(0,0,360)_0
#@gui :Za-Offset (deg.)=float(0,0,360)_0
#@gui :Xb-Offset (deg.)=float(90,0,360)_0
#@gui :Yb-Offset (deg.)=float(0,0,360)_0
#@gui :Zb-Offset (deg.)=float(0,0,360)_0
#@gui :_=note("<small><span color="#EE0055"><b>Exponents:</b></span></small>")
#@gui :Xa-Exponent=float(1,0,32)_0-
#@gui :Ya-Exponent=float(1,0,32)_0
#@gui :Za-Exponent=float(1,0,32)_0
#@gui :Xb-Exponent=float(1,0,32)_0
#@gui :Yb-Exponent=float(1,0,32)_0
#@gui :Zb-Exponent=float(1,0,32)_0
#@gui :_=note("<small><span color="#EE0055"><b>Signs:</b></span></small>")
#@gui :Xa-Sign=choice("Preserve","Invert","Negative","Positive")_0-
#@gui :Ya-Sign=choice("Preserve","Invert","Negative","Positive")_0
#@gui :Za-Sign=choice("Preserve","Invert","Negative","Positive")_0
#@gui :Xb-Sign=choice("Preserve","Invert","Negative","Positive")_0
#@gui :Yb-Sign=choice("Preserve","Invert","Negative","Positive")_0
#@gui :Zb-Sign=choice("Preserve","Invert","Negative","Positive")_0
#@gui :_=note("<small><span color="#EE0055"><b>3D Angles:</b></span></small>")
#@gui :X-Angle (deg.)=float(0,-180,180)_0-
#@gui :Y-Angle (deg.)=float(0,-180,180)_0
#@gui :Z-Angle (deg.)=float(0,-180,180)_0
#@gui :Zoom=float(1,0,10)_0
#@gui :Focale=int(8,1,20)_0
#@gui :_=separator()
#@gui :_=note("<span color="#EE5500"><b>Rendering parameters:</b></span>")
#@gui :Center=point(50,50,0,1,0,238,85,-170,10)_0
#@gui :_=value(50)
#@gui :_=value(50)
#@gui :Radius=point(68,68,0,1,238,0,85,-170,10)_0
#@gui :Angle=point(75,50,0,1,238,85,0,-170,10)_0
#@gui :_=value(75)
#@gui :_=value(50)
#@gui :Primary Radius (%)=float(3,0,100)
#@gui :Secondary Radius (%)=float(2,0,100)
#@gui :Opacity (%)=float(40,0,100)
#@gui :Color=color(#ffffff)
#@gui :Anti-Aliasing=choice(2,"None","× 1.25","× 1.5","× 2","× 3")
#@gui :_=separator()
#@gui :Preview Background=choice(1,"Image","Black","White")
#@gui :_=separator()
But when I tried to copy them and test them out on an image, it errored, and it seems to be saying something about the number of parameters being wrong (although that’s an assumption on my part), could anyone investigate?
gmic input.png fx_sine_curve 1,75,1,1,0.5,0.5,0.5,1,1,0,800,800,1,90,0,0,90,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,8,50,50,68,68,75,50,3,2,40,255,255,255,2,1 out_1.png
[gmic]./ Start G'MIC interpreter (v.3.5.2).
[gmic]./ Input file 'input.png' at position 0 (1 image 480x480x1x4).
[gmic] *** Error in ./fx_sine_curve/*substitute/ *** Unknown command or filename '1-55'; did you mean '-3d'?