https://bugs.kde.org/show_bug.cgi?id=482490
Bug ID: 482490
Summary: Cross-channel color adjustment filter could not be
configured by script
Classification: Applications
Product: krita
Version: 5.2.2
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: Scripting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Cross-channel color adjustment filter could not be configured by script. When
such a filter is created by code, its configuration property is initialized to
{'nTransfers': 0}. However, a normal color adjustment filter created by GUI
dialog has configuration properties like {'curve0': '0,0.5;1,0.5;', 'curve1':
'0,0.5;1,0.5;', 'curve2': '0,0.5;1,0.5;', 'curve3': '0,0.5;1,0.5;', 'curve4':
'0,0;1,0.5;', 'curve5': '0,0.5;1,0.5;', 'curve6': '0,0.5;1,0.5;', 'curve7':
'0,0.5;1,0.5;', 'nTransfers': 8}. Then, I tried to add these cruve information
to the initial empty configuration created by script. However, the code didn't
work as expected, that the cruve 0-7 is added to filter configuration while
property 'nTransfers' always remains 0. (fig.1)
According to the source code (fig.2), property 'nTransfers' should change with
the curve infomation added, but it didn't work. Furthermoreļ¼the curve
infomation is also ignored, the filter created by the script didn't work as the
curve info I specified.
Moreover, the curve 0-7 only specify the mapping curve for 8 output channels.
However, the driver channel is not specified by the filter configuration, which
means that dirver channel infomation could not be accessed by script.(fig.3)
Similar problem with other colour adjustment filter:
https://krita-artists.org/t/scripting-with-colour-adjustment-filter-layer/23229
--
You are receiving this mail because:
You are watching all bug changes.