Caps

These are the same caps as you may see in pharma bottles and tubes. Useful for combining with external shapes to build complex scenes. The settings are similar to the ones in bottles and tubes:

  • Type - defines the cap shape for the bottle. Boxshot fits the cap according to the neck settings, so you may need to make some adjustements in order to make it look well.
  • Cap height - defines the height of the cap shape.
  • Neck diameter - as Boxshot fits caps to neck, this parameter also controls the cap diameter.

Scripting

Here is a sample script that creates a can object:

var m = scene.root.addMesh("cap", "generator.pharma.cap");
var g = m.generator;
g.neckDiameter = 10;
g.capHeight = 20;
g.capType = "beer"; // use the same values you see in the user interface