Component: Clone Matrix (Misc)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.1
Category Misc


Clone Matrix component

Takes a single object and produces a three dimensional array of evenly spaced clones. Inidividual items in the array can be found from their position and individually modified after the array has been created.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Clone_Matrix.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Clone_Matrix.fcfx

Detailed description

No detailed description exists yet for this component

Examples

The clone matrix can be used to create multiple panel objects based on the geometry of a single object.


Here we have a sphere object on the panel

Clone1.jpg


By adding the Clone Matrix component and configuring the component properties we generate the cloned objects. If we need to re-clone the objects at any time then we can simply refresh the properties of the clone matrix component.

Clone2.jpg


Here is the final output result on the panel.

Clone3.jpg


Once the matrix is generated you can control the properties of the individual items.

Clone4.jpg


Example showing how to collect the handle of one of the clones to allow it's individual characteristics to be edited. For example in creating the simulation for a LED Cube or Array. FC6 Icon.png CloneMatrix






Macro reference

GetHandleAt

Fc9-comp-macro.png GetHandleAt
Gets the handle of the object at position [X, Y, Z] in the matrix. 
Fc9-u8-icon.png - BYTE IndexX
 
Fc9-u8-icon.png - BYTE IndexY
 
Fc9-u8-icon.png - BYTE IndexZ
 
Fc9-h32-icon.png - HANDLE Return


GetHandleFor

Fc9-comp-macro.png GetHandleFor
Gets the handle of the Nth object in the matrix. Index counts in the order along X, then Y, then Z. 
Fc9-u16-icon.png - UINT Index
Index of the object to get a handle for. 
Fc9-h32-icon.png - HANDLE Return


Update

Fc9-comp-macro.png Update
Updates the matrix to reflect any changes to the source object. NB) This will discard any changes made to individual objects within the array. 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-17-icon.png Target Object
Chooses the original panel object to be cloned into the matrix. 
Fc9-type-7-icon.png Hide Target
Whether the original object should be hidden once copied into the array. The object will be revealed automatically if the target object is changed or disconnected. 
Fc9-conn-icon.png X Axis
Fc9-type-21-icon.png Count
Number of columns of clones along the X-axis. 
Fc9-type-15-icon.png Spacing
Distance between columns along the X-axis. 
Fc9-conn-icon.png Y Axis
Fc9-type-21-icon.png Count
Number of rows of clones along the Y-axis. 
Fc9-type-15-icon.png Spacing
Distance between rows along the Y-axis. 
Fc9-conn-icon.png Z Axis
Fc9-type-21-icon.png Count
Number of layers of clones along the Z-axis. 
Fc9-type-15-icon.png Spacing
Distance between layers along the Z-axis.