Setup Packing Error (Trying to densely pack custom shape with custom meshes without collisions)

16 views
Skip to first unread message

Dean Goldman

unread,
Jul 7, 2017, 4:28:01 PM7/7/17
to autoPACK
Hello,

I am following the C4D autoPack custom setup tutorial (https://www.youtube.com/watch?v=S94GUmFQ7yM) and am having trouble following along. I am working in Blender.

Here are my steps:
- I add a mesh into "myRecipe_compartments_geometries" in the outliner.
- I hit SetupCompartments in the myRecipe Setup window in the left hand toolbar.
- I add a mesh into "Mesh_interior" which has been created after I hit the SetupCompartments button. Whatever goes in here is what I understand will be filling the volume of the first mesh added.
-When I click SetupPacking, this error is raised:

AttributeError: 'NoneType' object has no attribute 'setNumber'
(It traces back to the line in the addons... line 1644 in Environment.py)

def addCompartment(self, compartment):
    compartment.setNumber(self.nbCompartments)


I know that setNumber is a function of class Compartment (a subclass of CompartmentList) in Compartments.py. I expect that the object 'compartment' should be of class Compartment, not NoneType.
Perhaps I have set up the blender file incorrectly? Can anyone offer a tip?

My main goal is to densely pack a 3d volume with a set of irregular meshes, without any collisions) I have provided a picture below. This is a model that was manually built in rhino. I am searching for a way to automate the 3d packing without collisions.

Thank you!



fruithand.jpg

ludovic autin

unread,
Jul 7, 2017, 7:28:19 PM7/7/17
to autoPACK
Hi Dean,

sorry it dint work out for you, the tutorial was intended and tested only with cinema4d. However, I am currently working on a update version of the tutorial and I am using blender (tutorial doesn't work at all as you notice). So hopefully by next week I should have an updated vesrion of the plugin and the tutorial. So then you should be able to experiment and try to achieve your model. I should warn you that dense packing is difficult, we usually pack only 30% of the volume (biologically protein represents only 30% of the volume of a cell.). So we didnt optimize the code for dense packing, but it is achieveable by change some parameter, that i could show you when the version is ready.

What OS are you using, so I could prepare a beta build for you to test.

Ludo

chen

unread,
Feb 6, 2018, 12:44:45 PM2/6/18
to autoPACK
Hi Ludo,

Any update on this?
I have the same problem but using Autodesk 3Ds max in Windows.

Thanks
Chen

ludovic autin

unread,
Feb 6, 2018, 12:49:24 PM2/6/18
to autoPACK
Hi Chen, 

I would recommend using blender and follow the latest tutorial here :

I haven't work much on the 3dsMax version, and the custom recipe setup is not supported yet. 

Ludo
Reply all
Reply to author
Forward
0 new messages