-
This patch includes expansion to the Python API to make it easier to work with vectors and overlays, plus minimal support for brush preset control. It also includes missing sip bindings for some methods and a few fixes. ShapePython API: Add Preset plus vector and transform methods This patch includes expansion to the Python API to make it easier to work with vectors and overlays, plus minimal support for brush preset control. It also includes missing sip bindings for some methods and a few fixes. Document - createTransparencyMask : Creates a transparency mask node - createColorizeMask : Creates a colorize mask node ColorizeMask - Ability to modify and generate colorize masks TransparencyMask - Ability to modify transaprency masks and prevent them from crashing TransformMask - toXML : Output TransformMask as XML string - fromXML : Set transform from XML string CloneLayer - sourceNode : Show the original node CloneLayer is based on - setSourceNode : Set the node CloneLayer should be based on Shape - == and != - Compare if the shape is the same shape - parentShape : Find the parent of the current shape - absoluteTransformation : The absolute transformation of a shape including all grandparents VectorLayer - shapeAtPosition : Gets shape at a certain point - shapesInRect : Returns all shapes within a rectangle - createGroupShape : Groups top level shapes into a GroupShape Node - findChildNodes : finds all child nodes directly or recursively that match the given criteria within a node. Search by name partially or fully, by type or by color label. Preset - toXML : dump all brush preset preferences - fromXML : change brush preset preferences View - flakeToDocumentTransform - flakeToCanvasTransform - flakeToImageTransform Window - dockers : get a list of dockers for the set window Krita.instance().dockers() fixed to not crash if declared before mainwindow is loaded. Modified Tests: - TestDocument - TestNode New Tests: - TestShape - TestVectorLayer - == and != - Compare if the shape is the same shape - parentShape : Find the parent of the current shape - absoluteTransformation : The absolute transformation of a shape including all grandparents VectorLayer - shapeAtPosition : Gets shape at a certain point - shapesInRect : Returns all shapes within a rectangle - createGroupShape : Groups top level shapes into a GroupShape Node - findChildNodes : finds all child nodes directly or recursively that match the given criteria within a node. Search by name partially or fully, by type or by color label. Canvas - transformation : the transformation for the canvas relative to the view - imageTransform : the transformation for the image relative to the canvas Preset - toXml : dump all brush preset preferences - fromXml : change brush preset preferences View - documentTransformation : transform of the document relative to the view Window - dockers : get a list of dockers for the set window Krita.instance().dockers() fixed to not crash if declared before mainwindow is loaded.
99b8d435
Loading