3D Yogurt Pack

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.

  • Cups in a row, Number of rows - these two parameters define the pack size. Set both to 1 to render a single cup.
  • Fit to images - this button adjusts the shape size according to the top and label images

The “Top” section configures yogurt cups' top for the whole shape. The properties are:

  • Width, Length - define the size of the top part of the cup (single cup, not the whole pack).
  • Curve - this parameter controls the radius of the top corners, aslo the inside holes between cups' tops.
  • Foil bump - controls the size of the glued part of the top.
  • Share cover image - controls whether the cover image is shared between all the cups or each cup has its own copy of the image.

The “Cup” section controls cup-related parameters:

  • Width, Length, Height - define the size of cups.
  • Label height - controls the height of the label on the cup.
  • Label offset - allows you to rotate the label around the cup.
  • Curve - controls the radius of the cup’s corners to make completely round or square cups.

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.

Scripting

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();