I’m still not sure why, but I’ve removed display0
in latest version 2.6.4. I’ll probably re-add it later today.
You can’t change the precision of the sliders. To me, if a slider with a wide value range requires lot of precision, then there is a design flaw in the filter. You cannot be sure what display size your slider will fill. A minimal step for the slider is chosen according to the value range it defines.
I’m not sure I understand the limitations you are talking about.
Anyway here is how the plug-in works : To get the list of .gmic
files to parse for filters, the plug-in first invokes the command gui_filter_sources
, which returns a list of images, each one being actually a string that contains the path of the .gmic
files to load.
$ gmic gui_filter_sources , e "{0,t}" e "{1,t}" q
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./gui_filter_sources/*if/ Set local variable 'local=/home/dtschump/.config/gmic/update264.gmic'.
[gmic]-0./gui_filter_sources/*if/*if/ Import commands from file '/home/dtschump/.config/gmic/update264.gmic' (3668 replaced, total: 3707).
[gmic]-0./gui_filter_sources/*if/*if/gui_filter_sources/ Input image at position 0, with values (104,116,116,112,115,58,47,47,103,109,(...)116,101,50,54,52,46,103,109,105,99,1) (1 image 31x1x1x1).
[gmic]-0./gui_filter_sources/*if/*if/gui_filter_sources/*local/ *** Error (file '/home/dtschump/.config/gmic/update264.gmic', line #22999) *** Unknown filename '/home/dtschump/.config/gmic/gui_filter_sources'.
[gmic]-1./gui_filter_sources/*if/*if/gui_filter_sources/ Input image at position 1, with values (47,104,111,109,101,47,100,116,115,99,104,117,109,112,47,46,103,109,105,99) (1 image 20x1x1x1).
[gmic]-2./ https://gmic.eu/update264.gmic
[gmic]-2./ /home/dtschump/.gmic
[gmic]-2./ Quit G'MIC interpreter.
If a user wants to add its own additional filter sources, there are two options:
- Add a command
_gui_filter_sources
in itsuser.gmic
source, that adds new sources, e.g.
_gui_filter_sources:
path="/home/user/toto.gmic"
({'{/$path}'})
- Or, add a file named
gui_filter_sources
in$HOME/.config/gmic
(or%APPDATA%\gmic\
on Windows) that contains the strings to the new sources:
$ gmic string "/home/users/toto.gmic" o cimg:$HOME/.config/gmic/gui_filter_sources
Also, this is how this should work, but I must admit I’ve not tested it for ages