Here, we’ll use the stored value of the diameter to space the duplicates of the barrel. Variable values can be recalled at any time. Variables can be used as values for arguments.
duplicate;
You have a duplicate of the first barrel, and it is the currently selected object.
move -r 0 0 $diameter_barrel;
A duplicate of the original barrel is created and aligned to the first barrel.
duplicate;
move -r 0 0 $diameter_barrel;
The current selection switches to the newly created geometry.
duplicate;
move -r 0 0 $diameter_barrel;
When duplicating objects, the selection always switches to the duplicate. Each barrel is spaced the same relative to its neighbors.
The first row of barrels is complete.