|
1 | 1 | export script_name = "Envelope Distort"
|
2 | 2 | export script_description = "Allows you to warp and manipulate shapes within a customizable envelope"
|
3 |
| -export script_version = "1.1.2" |
| 3 | +export script_version = "1.1.3" |
4 | 4 | export script_author = "ILLTeam"
|
5 | 5 | export script_namespace = "ILL.EnvelopeDistort"
|
6 | 6 |
|
@@ -32,7 +32,7 @@ interface = -> {
|
32 | 32 | {class: "label", label: "Columns", x: 0, y: 3}
|
33 | 33 | {class: "intedit", min: 1, x: 1, y: 3, name: "cols", value: 1}
|
34 | 34 | {class: "label", label: "Tolerance", x: 0, y: 4}
|
35 |
| - {class: "floatedit", min: 0, x: 1, y: 4, name: "tolerance", value: 0} |
| 35 | + {class: "floatedit", min: 0, x: 1, y: 4, name: "tolerance", value: 1} |
36 | 36 | {class: "checkbox", label: "Perspective", x: 0, y: 6, name: "perspective", value: false}
|
37 | 37 | {class: "checkbox", label: "Keep Mesh", x: 1, y: 6, name: "keepMesh", value: false}
|
38 | 38 | }
|
@@ -68,7 +68,6 @@ makeWithMesh = (sub, sel, activeLine) ->
|
68 | 68 | ass\insertLine l, s
|
69 | 69 | else
|
70 | 70 | {:org} = l.data
|
71 |
| - isMove = l.tags\existsTag "move" |
72 | 71 | Line.callBackTags ass, l, (line, j) ->
|
73 | 72 | line.text\callBack (tags, text) ->
|
74 | 73 | line.tags\insert {{"clip", screen .. clips[j]}}
|
@@ -98,9 +97,10 @@ makeWithMesh = (sub, sel, activeLine) ->
|
98 | 97 | if perspective
|
99 | 98 | path\perspective mesh.path[1], real.path[1]
|
100 | 99 | else
|
| 100 | + path\closeContours! |
101 | 101 | path\allCurve!
|
102 | 102 | path\envelopeDistort mesh, real, tolerance
|
103 |
| - unless maintainMesh |
| 103 | + unless keepMesh |
104 | 104 | line.tags\remove "clip", "iclip"
|
105 | 105 | line.shape = path\move(-x, -y)\export!
|
106 | 106 | ass\insertLine line, s
|
|
0 commit comments