29.04.2024, 21:51
With the last version the problem has been solved.
I noted that when is selected a Preset the parameters are propagated also in the custom view.
This is not necessary since I think is adding an additional layer of complexity in the development.
I guess that you are replicating the code of function ddeoldify_main().
In your version the value "none" for ColorFix is not managed correctly, in my code "none" is managed as a special case in this way
In your version when "none" is selected the hue_range becomes "none|0.3,0.1"
I attached an updated version where I changed the code of ddeoldify_main().
I think that the link with the custom parameters is not necessary, but is up to you to decide this implementation.
In the case you want to keep the link, please update your code with the version attached.
Thanks,
Dan
I noted that when is selected a Preset the parameters are propagated also in the custom view.
This is not necessary since I think is adding an additional layer of complexity in the development.
I guess that you are replicating the code of function ddeoldify_main().
In your version the value "none" for ColorFix is not managed correctly, in my code "none" is managed as a special case in this way
if co_id == 0:
hue_range = "none"
hue_range2 = "none"
else:
hue_range = hue_fix[co_id] + "|0.3,0.1"
hue_range2 = hue_fix[co_id] + "|0.8,0"
In your version when "none" is selected the hue_range becomes "none|0.3,0.1"
I attached an updated version where I changed the code of ddeoldify_main().
I think that the link with the custom parameters is not necessary, but is up to you to decide this implementation.
In the case you want to keep the link, please update your code with the version attached.
Thanks,
Dan