Wiki source code of Fill Areas Automatically
Version 31.1 by Michael Jagoutz on 2021/03/23 17:17
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="row" style="display: flex; align-items: center; margin-bottom: 2em" %) | ||
2 | ((( | ||
3 | (% class="col-xs-12 col-sm-8" %) | ||
4 | ((( | ||
5 | (% class="badge warningmessage" %)** MEDIUM **(%%)** In this Tutorial you learn how to fill an object automatically.** | ||
6 | |||
7 | |||
8 | [[**here you get to the download page of the example programm~>~>**>>https://share.catrob.at/app/project/347dd0fd-ecf8-11ea-9251-005056a36f47]] | ||
9 | |||
10 | //Here you can download the description in [[PDF-format>>attach:Fill Areas Automatically.pptx]]!// | ||
11 | ))) | ||
12 | |||
13 | (% class="col-xs-12 col-sm-4" %) | ||
14 | ((( | ||
15 | [[image:20200902_144629.jpg||queryString="width=150" height="244" style="float:right" width="250"]] | ||
16 | ))) | ||
17 | ))) | ||
18 | |||
19 | (% class="row" %) | ||
20 | ((( | ||
21 | (% class="col-xs-12 col-sm-6" %) | ||
22 | ((( | ||
23 | (% class="box" %) | ||
24 | ((( | ||
25 | **1. **First,** c**reate a new Object. This is the object you want to fill. **You must name the object "filledObject".** | ||
26 | |||
27 | You can draw it, or choose one of the media library. | ||
28 | |||
29 | |||
30 | (% class="box warningmessage" %) | ||
31 | ((( | ||
32 | Mark, that you can only fill simple forms. If your design is too complicated it won't work. | ||
33 | [[image:FilledObjects.png||height="auto" width="200"]] | ||
34 | ))) | ||
35 | ))) | ||
36 | ))) | ||
37 | |||
38 | (% class="col-xs-12 col-sm-6" %) | ||
39 | ((( | ||
40 | (% class="box" %) | ||
41 | ((( | ||
42 | **2. **Now start and insert bricks to your script. | ||
43 | |||
44 | First set the transparency to 50%. | ||
45 | |||
46 | [[image:setTransparency.png||height="78" width="300"]] | ||
47 | |||
48 | Than set the size of your object using this brick. | ||
49 | |||
50 | [[image:setSize.png||height="60" width="300"]] | ||
51 | |||
52 | Last but not least place the object at the right position. | ||
53 | |||
54 | [[image:placeat.png||height="78" width="300"]] | ||
55 | |||
56 | Hint: After shortly taping onto the brick you can place your object visually. | ||
57 | |||
58 | |||
59 | ))) | ||
60 | ))) | ||
61 | ))) | ||
62 | |||
63 | (% class="row" %) | ||
64 | ((( | ||
65 | (% class="col-xs-12 col-sm-6" %) | ||
66 | ((( | ||
67 | (% class="box" %) | ||
68 | ((( | ||
69 | **3. Create a new embroidery object. ** | ||
70 | |||
71 | //Have a look on how to create an embroidery object [[here>>doc:Education.Embroidery.Create Embroidery-Objects.WebHome]].// | ||
72 | |||
73 | |||
74 | |||
75 | |||
76 | |||
77 | |||
78 | Everywhere you see the text "touches actor or object..." you have to add a property. | ||
79 | |||
80 | Therefor go to the formula editor and follow these steps: | ||
81 | |||
82 | |||
83 | [[image:Properties.png||height="282" width="335"]] | ||
84 | |||
85 | |||
86 | [[image:touches actor or object.png||height="456" width="332"]] | ||
87 | |||
88 | |||
89 | [[image:choose right object.png||height="168" width="331"]] | ||
90 | |||
91 | |||
92 | Now there should be the same text as in the right pictures. | ||
93 | |||
94 | |||
95 | (% class="box errormessage" %) | ||
96 | ((( | ||
97 | **Attention! ** | ||
98 | \\If there is a **"not"** before the property, you have to add that too. You can find it in the **formula editor** under **logic**. | ||
99 | ))) | ||
100 | |||
101 | |||
102 | |||
103 | |||
104 | ))) | ||
105 | ))) | ||
106 | |||
107 | (% class="col-xs-12 col-sm-3" %) | ||
108 | ((( | ||
109 | (% class="box" %) | ||
110 | ((( | ||
111 | **4. **Now start and insert this bricks to your script. | ||
112 | |||
113 | [[image:FillObjectCode1.0.png]] | ||
114 | |||
115 | |||
116 | ))) | ||
117 | ))) | ||
118 | |||
119 | (% class="col-xs-12 col-sm-3" %) | ||
120 | ((( | ||
121 | |(% style="height:900px" %) | ||
122 | |(% class="box infomessage" %)((( | ||
123 | You have to place this position visually at the left side of your object, which you want to fill. The needle is going to move to the right till it touches your object. | ||
124 | ))) | ||
125 | |||
126 | |||
127 | ))) | ||
128 | ))) | ||
129 | |||
130 | |||
131 | (% class="row" %) | ||
132 | ((( | ||
133 | (% class="col-xs-12 col-sm-6" %) | ||
134 | ((( | ||
135 | |||
136 | ))) | ||
137 | |||
138 | (% class="col-xs-12 col-sm-6" %) | ||
139 | ((( | ||
140 | (% class="box" %) | ||
141 | ((( | ||
142 | **5. **Check the bricks, if it still doesn’t work. | ||
143 | |||
144 | **Heres a cute example to see whats possible:** | ||
145 | |||
146 | [[image:20200902_144703.jpg||height="340" width="260"]] | ||
147 | ))) | ||
148 | ))) | ||
149 | ))) |