Difference between revisions of "Component: Clone Matrix (Misc)"
(3 intermediate revisions by the same user not shown) | |||
Line 104: | Line 104: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Macro reference== | ||
+ | |||
+ | ===GetHandleAt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 152: | Line 143: | ||
+ | ===GetHandleFor=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetHandleFor''' | ||
+ | |- | ||
+ | | colspan="2" | Gets the handle of the Nth object in the matrix. Index counts in the order along X, then Y, then Z. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
+ | | width="90%" | Index | ||
+ | |- | ||
+ | | colspan="2" | Index of the object to get a handle for. | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-h32-icon.png]] - HANDLE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===Update=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 163: | Line 174: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:09, 7 February 2023
Author | Matrix Ltd |
Version | 1.1 |
Category | Misc |
Contents
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
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.
Here is the final output result on the panel.
Once the matrix is generated you can control the properties of the individual items.
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.
CloneMatrix
Macro reference
GetHandleAt
![]() |
GetHandleAt |
Gets the handle of the object at position [X, Y, Z] in the matrix. | |
![]() |
IndexX |
![]() |
IndexY |
![]() |
IndexZ |
![]() |
Return |
GetHandleFor
![]() |
GetHandleFor |
Gets the handle of the Nth object in the matrix. Index counts in the order along X, then Y, then Z. | |
![]() |
Index |
Index of the object to get a handle for. | |
![]() |
Return |
Update
![]() |
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. | |
![]() |
Return |