Get the sourcecode:
CanStack is a free little plugin for Maxon Cinema 4D that stacks clones of an input object, forming the typical pyramidical or triangular stack that everybody knows from the supermarket. It can create normal clones or render instances, and it can apply natural variation to the positioning and alignment of the clones.
CanStack was written because I needed stacks of objects for a test scene, and I was simply too lazy to stack that many objects manually. Sometimes, writing a plugin is more fun than doing it by hand. Also, this plugin posed a good chance to demonstrate generator caching and encapsulating generator functionality in a reusable class.
This group of parameters focusses on the most basic attributes.
Link a spline here, if you don't want the stack to be just straight.
Set the basic length here, if the stack is not defined by a spline.
This group contains parameters that control how many items the stack will contain and how they behave.
Defines how many items the base row (lowest row) will contain. All successive rows will depend on this.
Defines how many rows the stack has. There can never be more rows than items in the base row.
Defines distance between two rows.
Ideally, the Row Height should be the same as the hight of the object that's being cloned in the stack. If you don't want to look up and set the height yourself, just click this button.
Create Render Instances
Instead of creating real clones (copies of the input object), CanStack will create render instances if this option is activated. Render instances will drastically reduce the amout of memory needed for a stack, accelerate viewport display and shorten render times.
Long story short: You should keep this activated unless you have a good reason not to.
This group contains parameters that create natural variation in teh stack, making it look more like hand work instead of being algorithmically generated.
Set any number here to change the results of the random calculations.
Each item will be randomly rotated around its Y axis. This parameter defines the maximum rotation.
Items will be randomly offset along the generator's X axis. This parameter defines the maximum offset.
If a spline is used, items will not simply be offset along the generator's X axis, but away from the spline on the XZ plane.
Items will be randomly offset along the generator's Z axis. This parameter defines the maximum offset.
If a spline is used, items will not simply be offset along the generator's Z axis, but along the spline on the XZ plane.