https://bugs.kde.org/show_bug.cgi?id=482491
Bug ID: 482491 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: krita-bugs-n...@kde.org Reporter: mbc...@proton.me CC: krita-bugs-n...@kde.org Depends on: 482490 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 curve information to the initial empty configuration created by script. However, the code didn't work as expected, that the curve 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 information added, but it didn't work. Furthermoreļ¼the curve information 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 driver channel information could not be accessed by script.(fig.3) Similar problem with other color adjustment filter: https://krita-artists.org/t/scripting-with-colour-adjustment-filter-layer/23229 Referenced Bugs: https://bugs.kde.org/show_bug.cgi?id=482490 [Bug 482490] Cross-channel color adjustment filter could not be configured by script -- You are receiving this mail because: You are watching all bug changes.