Closed MikiGrit closed 4 years ago
I've changed the main loop so that now components are constructed as negative shapes and then finally subtracted from the box. What this means is that you can intersect components to carve out secondary shapes, such as the square boards you're trying to fit on top. Let me know if this enables what you're intending. Try the following:
data =
[
[ "insert",
[
[ "box_dimensions", [193, 193, 44] ],
[ "label",
[
[ "text", "my insert"],
[ "width", "auto"],
[ "rotation", 45],
[ "offset", [-4,-2]],
]
],
[ "components",
[
[ "cards",
[
["num_compartments", [1,2]],
["compartment_size", [94, 60, 20]],
// ["padding", [22, 2]],
["margin", [f,f,t,f]],
["padding_height_adjust", [-7, -7] ],
["cutout_sides", [t,f,f,f]],
["position", ["max","max"]],
]
],
[ "slides",
[
["num_compartments", [1,2]],
["compartment_size", [93, 93, 40]],
["padding", [2, 2]],
["position", [0, 0]],
["cutout_sides", [t,f,f,f]],
_compartment_text([["cubes"], ["dice"]])
]
],
[ "square boards",
[
["position", ["max","max"]],
["compartment_size", [116, 140, 7]],
]]
]
]
]
],
];
Awesome! It also feels more intuitive now. Thanks :).
Hi,
I'm trying to do a boardgame insert with your toolkit (which is great btw, thanks for it! :) ).
And I'm facing difficulty how to do particular thing. I want to have adjusted padding height in top right corner of insert, so there is a space for some square boards on top of other components. But instead of cropping the padding between leftside comparments, it inserts rectangle into them. Am I doing it wrong or is this currently not possible?
Thanks!
I have this configuration: