Hello dinasset.
I think I'll tell you what I had already told in the past, but there it is :
G'MIC commands starting with '
-fx_...' are intended to be filters defined for the GIMP/Krita plug-in, an due to the update mechanism, they are intended
to be updated from time to time. There are no ways we can guarantee that a call to a command like
'-fx...' will work in the future. If it was the case, then that would mean no filters can evolve anymore in the plug-in.
So, my strong advice (which I already told here and here) is :
Never use calls to G'MIC commands starting with '-fx...' in your own scripts if you want to ensure the stability of your script over time. These commands are changing over time, they don't define a stable API by nature!
I mean, most of the
other G'MIC commands have a stable and reliable API, so why not using those instead ?
If you want to blend two images together, why not using the command
-blend instead ? This commands takes as an argument the blending mode, not as a number, but as a string, e.g.
-blend[0,1] vividlight.
So, please use the command '
-blend' (the natural way of blending images in G'MIC) and not the command '-fx_blend' (the command name used in the plug-in) and you won't get troubles anymore.
The issue is that maybe you try to design scripts without really knowing how the G'MIC syntax work : you apply a G'MIC filter on an image, and copy/paste the used G'MIC command (output as the layer name for instance) in your script. This works of course, but this shouldn't the way to do it properly.
I mean, in the sense that this technique will certainly work for a short amount of time, so it is good when you want for example to batch a lot of files right now, but this can be only seen as a short time way of doing it. If you really want to write permanent scripts, that's not the way of doing, as you may have noticed with all the issues you got doing like that

To sum up : commands starting as '
-fx...' are volatile by nature, you should avoid using them as much as possible in your own scripts.
In a few cases, it may be not possible, but in that case, prepare yourself to have to update your scripts in case the filter command you use is updated.