Soda can shape allows you to mock up several types of cans. It has two parameters:
- Size - defines the diameter of the can.
- Height - defines the height of the can.
You don’t need to change these parameters yourself if you have a wrap-around image for the can. Simply load it to the “Side” slot of the can and then click the “Fit To Images” button in the object’s properties panel. Boxshot will adjust the dimensions for you.
Consider using metallic materials for can shapes to make them look more realistic. Reflection texture is essential here.
Here is a sample script that creates a can object:
var m = scene.root.addMesh("can-330ml", "generator.cans.BeverageCanStandard330ml"); var g = m.generator; g.size = 10; g.height = 20; g.fitToImages();
To create a 250ml can, use the following command:
var m = scene.root.addMesh("can-250ml", "generator.cans.BeverageCanSlim250ml");