https://bugs.kde.org/show_bug.cgi?id=482491

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dimul...@gmail.com

--- Comment #6 from Dmitry Kazakov <dimul...@gmail.com> ---
Hi, mbcnve!

Just to let you know a workaround, if you add an explicit line of `nTransfers`
before other properties, then script will work:

```python
from krita import *

app = Krita.instance()
doc = app.activeDocument()
currentNode = doc.activeNode()

myFilter = app.filter('crosschannel')
myFilterConfig = myFilter.configuration()
print(myFilterConfig.properties())

myFilterConfig.setProperties({'nTransfer': 8})
myFilterConfig.setProperties(
    {'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;'})
print(myFilterConfig.properties())
```

That is technically a bug, though I don't know how to solve it properly :)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to