Boxshot allows you to render a single yogurt cup or a pack of up to 4x4 cups. Drag the “Yogurt Pack” shape to the scene to see its properties.
The “Top” section configures yogurt cups' top for the whole shape. The properties are:
The “Cup” section controls cup-related parameters:
When fitting this shape to images, Boxshot first looks at the top graphics and to the number of columns and rows. This gives enough information to find width and length of a single cup. It then uses label size to find out the cup height. If some images are missing, Boxshot tries to guess the correct size and you may need to adjust automatic parameters then.
Here’s how to create a 3D yogurt pack from script:
var m = scene.root.addMesh("pack", "generator.Dairy.YogurtPack"); var g = m.generator; g.cupsInRow = 2; g.numberOfRows = 3; g.topWidth = 11; g.topLength = 11; g.topCurve = 0.3; g.foilBump = 0.1; g.solidCoverMapping = false; g.cupWidth = 10; g.cupLength = 10; g.cupHeight = 15; g.labelHeight = 10; g.cupCurve = 0.8; g.labelOffset = 0.3; g.fitToImages();