Commit 938e3cf7 authored by leonmuller's avatar leonmuller

Script now takes into account transforms on layers

parent 1ef3e275
......@@ -961,7 +961,7 @@ class Gcode_tools(inkex.Effect):
csp = [float(node.get("x")),float(node.get("y"))]
simpletransform.applyTransformToPoint(trans, csp )
x,y = csp
x = ((x-(strokeWidth/2)+float(trans[0][2])) * 1)
x = ((x-(strokeWidth/2)) * 1)
#Add the height in px from inkscape from the image, as its top is measured from the origin top left, though in inkscape the origin is bottom left so we need to begin scanning the px at the bottom of the image for our laser bed.
if(node.tag == SVG_IMAGE_TAG):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment