AlternateArray1D

From K-3D

Jump to: navigation, search

Description

AlternateArray1D
Plugin Status:Stable
Categories:All Plugins, Stable Plugins, Array Plugins

Metadata

Name Value

Properties

Label Description Type Script Name
Layout Layout k3d::inode* layout
Axis1 Axis1 k3d::string_t axis1


Notes

AlternateArray1D can be used with the other array plugins to create "seamless" patterns by mirroring alternating objects in an array around an axis. A typical scenario would be to use AlternateArray1D as the layout for a TranslateArray1D, simultaneously spacing-out and alternating the orientation of the array objects.

Example

Using RenderManArray1D with TranslateArray1D and AlternateArray1D
Rendered output, showing how every other object is mirrored by AlternateArray1D
  • Start K-3D.
  • Use Create > Polygons > PolyCylinder to create a PolyCylinder that will be rendered multiple times.
  • Right-click on the cylinder in the viewport and choose Mesh Modifier > Rotate Points.
  • Rotate the cylinder around its Y axis, so it will be asymmetrical with respect to the X axis.
  • Choose Create > Array > RenderManArray1D to create the array node that will control the number and layout of cylinders to be rendered.
  • The new RenderManArray1D properties will appear in the Node Properties Panel.
  • For the Source property, choose the cylinder.
  • For the Layout property, choose "-- New TranslateArray1D".
  • The new TranslateArray1D properties will appear in the Node Properties Panel.
  • You will see a collection of overlapping cyan bounding-boxes in the viewport. Each bounding-box is the same size as the source cylinder.
  • Adjust the Offset property X value so that the bounding-boxes do not overlap.
  • For the Layout property, choose "-- New AlternateArray1D".
  • Render the scene to see how every other cylinder is mirrored along the X axis.

See Also

MeshArray1D, RenderManArray1D, TranslateArray1D, RotateArray1D