I’m looking for a better way to allow users to use arguments like string_a,string_b or number_a,number_b as parameter which is basically what my code example did. So, if I were to type in ir2 as parameters, the resulting code utilize if $ir2 case upon execution. The same thing would happen if I type in 4. The way I written it is very maintainable though it’s not understandable.
With the above syntax, all I gotta do is to add in initials if I want to add a configuration, and then the user of said command can use the new initials as parameter argument or the integer representation of said parameter. In this case, there’s no need for me to add in if $1==‘avn’||$1==0 and so forth, and there’s no need for me to assign number as it’s done in the background.
But, like you said, everything in there even if this seem a little tricky to add in.
@hover that’s the exact same error as the one you got for the Pencil Portrait filter.
Just curious, do you have a custom user.gmic file that would redefine some of the default command ? That could explain this.
EDIT: Okay, both got the Q erros fixed. JFIF (JPEG) Encoder seem to have something’s up, but almost works. JFIF Effects now has invalid selection[G] error. I made a push to fix that.
Mondrain Pattern is on my list of TODO. And I have a lot of those. I’m just doing small fixes and so. And I still have to finish the upgraded Picture Mosaic.