|
@@ -119,9 +119,12 @@ class CardGridGenerator(Extension):
|
|
|
multiplier = docPPI
|
|
multiplier = docPPI
|
|
|
if self.unitInput.currentText() == "mm":
|
|
if self.unitInput.currentText() == "mm":
|
|
|
multiplier = docPPI/25.4
|
|
multiplier = docPPI/25.4
|
|
|
- bleedSize = float(self.bleedInput.text()) * multiplier
|
|
|
|
|
- cardWidth = float(self.widthInput.text()) * multiplier
|
|
|
|
|
- cardHeight = float(self.heightInput.text()) * multiplier
|
|
|
|
|
|
|
+ bleed = self.bleedInput.text()
|
|
|
|
|
+ width = self.widthInput.text()
|
|
|
|
|
+ height = self.heightInput.text()
|
|
|
|
|
+ bleedSize = int(float(bleed) * multiplier)
|
|
|
|
|
+ cardWidth = int(float(width) * multiplier)
|
|
|
|
|
+ cardHeight = int(float(height) * multiplier)
|
|
|
|
|
|
|
|
# Card dimensions with bleed.
|
|
# Card dimensions with bleed.
|
|
|
cardBledWidth = cardWidth + bleedSize * 2
|
|
cardBledWidth = cardWidth + bleedSize * 2
|
|
@@ -192,7 +195,7 @@ class CardGridGenerator(Extension):
|
|
|
cropBetween = cropmarkType in ["Between", "All"]
|
|
cropBetween = cropmarkType in ["Between", "All"]
|
|
|
|
|
|
|
|
# Cropmarks will be on a new layer.
|
|
# Cropmarks will be on a new layer.
|
|
|
- layer = doc.createNode('CardGridCropmarks', 'paintLayer')
|
|
|
|
|
|
|
+ layer = doc.createNode(f"""Cropmarks {width}x{height}x{bleed}""", 'paintLayer')
|
|
|
root = doc.rootNode()
|
|
root = doc.rootNode()
|
|
|
root.addChildNode(layer, None)
|
|
root.addChildNode(layer, None)
|
|
|
|
|
|