CanStack

CanStack C++ Cinema 4D

Get the sourcecode:
github.com/fwilleke80/CanStack

Download release:
github.com/fwilleke80/CanStack/releases

Licensed under:
GPL 3.0

CanStack example

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.

Help

Attributes explained...

Stack

This group of parameters focusses on the most basic attributes.

Base Path

Link a spline here, if you don't want the stack to be just straight.

Base Length

Set the basic length here, if the stack is not defined by a spline.

Items

This group contains parameters that control how many items the stack will contain and how they behave.

Base Count

Defines how many items the base row (lowest row) will contain. All successive rows will depend on this.

Max Rows

Defines how many rows the stack has. There can never be more rows than items in the base row.

Row Height

Defines distance between two rows.

Fit Height

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.

Random

This group contains parameters that create natural variation in teh stack, making it look more like hand work instead of being algorithmically generated.

Seed

Set any number here to change the results of the random calculations.

Random Rotation

Each item will be randomly rotated around its Y axis. This parameter defines the maximum rotation.

X Offset

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.

Z Offset

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.