Script to array objects with Packing Algorithm

python

(Heiwayuuri) #1

To the scripting world:

I wanna array select all objects with Packing Algorithm.
reference(https://codeincomplete.com/posts/bin-packing/)

Because I want to efficiently place objects on boards.
Sorry,I can not speak English well.
Thank you.


(Dale Fugier) #2

Hi @heiwayuuri,

I didn’t read the referenced article very closely. But I do think it’s possbile to implement this in Python. Use an object’s bounding box as the ‘box’ - you’ll need to pad the bounding box so it us uniform (e.g. cube) in shape.

– Dale