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

Scott Petrovic <scottpetro...@gmail.com> changed:

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

--- Comment #2 from Scott Petrovic <scottpetro...@gmail.com> ---
The filter configuration seems to want a QDomElement (which is XML). We can
either make someone create a QDomElement in Python and send that in to set the
filter configuration. Or add an internal conversion helper function to
InfoObject that converts it to XML. I would personally pick QDomElement since
that is already available in PyQt. Also less code we might have to maintain
with an InfoObject converter.

where the filter configuration is being set in Python
https://invent.kde.org/graphics/krita/-/blob/master/libs/libkis/Filter.cpp#L105


filter configuration seems to store settings in XML format
https://invent.kde.org/graphics/krita/-/blob/master/libs/image/filter/kis_filter_configuration.cc#L117

A couple filter configurations

Oil Paint filter XML example
-----------------------------
<!DOCTYPE params>
<params version="1">
 <param type="internal" name="brushSize">1</param>
 <param type="internal" name="smooth">30</param>
</params>


Edge Detection Sobel XML example
------------------------------
<!DOCTYPE params>
<params version="1">
 <param type="internal" name="horizRadius">1.85</param>
 <param type="internal" name="lockAspect">true</param>
 <param type="string" name="output"><![CDATA[xFall]]></param>
 <param type="internal" name="transparency">false</param>
 <param type="string" name="type"><![CDATA[sobol]]></param>
 <param type="internal" name="vertRadius">1.85</param>
</params>

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

Reply via email to