inkscape-applytransforms
inkscape-applytransforms copied to clipboard
deprecated multiplication operator
When trying to apply transform i get a deprecated warning:
DeprecationWarning: inkex.deprecated.main.transform_mul -> Use @ operator instead
transf = Transform(transf) * Transform(node.get("transform", None))
This is a duplicate of https://github.com/Klowner/inkscape-applytransforms/issues/55.
i am going to fix that stuff in the next month for several other plugins; since python 3.10 and Inkscape 1.2 there are a lot of new deprecations in multiple extensions
Any progress on this?
I did try to replace *
with @
in the code. The error disappears, but the result does not show a transform.
I'm running into this issue also, deprecation warning and no transformation is taking place. Inkscape 1.2.1 M1 Mac
If you're not seeing the results you expect, please open a new ticket with an example svg and steps to reproduce.
This deprecation warning is not an error and does not impact the operation of this extension. The warning lets us know that it will eventually break with a future release of inkscape. When that time comes, there will not be a warning but an actual error.
@Klowner understood, however the extension is still not flattening the SVG. I will open a new ticket with more details.
Just got this same error on Inkscape 1.3
C:\Users\Haley\AppData\Roaming\inkscape\extensions\applytransform.py:60: DeprecationWarning: inkex.deprecated.main.transform_mul -> Use @ operator instead
transf = Transform(transf) * Transform(node.get("transform", None))
Fixed by #62, can be closed now.