Flexible Bags

Boxshot Ultimate supports these types of flexible bags (more to come):

  • Gusseted bag
  • Sachet bag
  • Pillow bag
  • Doypack bag

Each bag type has its own set of parameters, but most of them are similar for all the types. Here is the list:

  • Width and Height - the dimensions of the bag (flat)
  • Top/Bottom/Side Seal - the size of bags' seals
  • Flip/Center Back Seal - affects how the back seal is displayed
  • Thickness - controls the thickness of the gusseted bag shape
  • Volume - controls how much air is in the bag
  • Asymmetry - controls the spread of the air in the bag. 0 means symmetric bag, 100 means the bottom part is larger than the top one.
  • Deformation - allows you to add some noise to the shape
  • Seed - controls the random values during the bag generation, so if you don’t like the noise, you can change it.
  • Fit to images - allows you to automatically fit the shape size according to the graphics.

Scripting

Here’s how to create a gusseted bag from script:

var m = scene.root.addMesh("gusseted", "generator.flexible.GussetedBag");
var g = m.generator;
g.width = 15;
g.height = 20;
g.thickness = 0.5;
g.topSeal = 1;
g.bottomSeal = 1;
g.backSeal = 2;
g.flipBackSeal = false;
g.centerBackSeal = false;
g.asymmetry = 0.2;
g.deformation = 0.1;
g.volume = 0.4;
g.seed = 12345;
g.fitToImages();

Here’s the same for sachet bag:

var m = scene.root.addMesh("sachet", "generator.flexible.SachetBag");
var g = m.generator;
g.width = 10;
g.height = 15;
g.topSeal = 1;
g.bottomSeal = 1;
g.sideSeal = 1;
g.asymmetry = 0.2;
g.deformation = 0;
g.volume = 0.6;
g.seed = 111;
g.fitToImages();

A pillow bag:

var m = scene.root.addMesh("pillow", "generator.flexible.PillowBag");
var g = m.generator;
g.width = 10;
g.height = 15;
g.topSeal = 1;
g.bottomSeal = 1;
g.backSeal = 2;
g.flipBackSeal = false;
g.centerBackSeal = true;
g.asymmetry = 0.2;
g.deformation = 0.3;
g.volume = 0.1;
g.seed = 4432;
g.fitToImages();

Finally, a doypack bag:

var m = scene.root.addMesh("doy", "generator.flexible.Doypack");
var g = m.generator;
g.width = 10;
g.height = 15;
g.topSeal = 1;
g.sideSeal = 1;
g.asymmetry = 0.2;
g.deformation = 0.3;
g.volume = 0.4;
g.seed = 4432;
g.fitToImages();