.. _omni_graph_nodes_ConstructArray_1:

.. _omni_graph_nodes_ConstructArray:

.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================

:orphan:

.. meta::
    :title: Make Array
    :keywords: lang-en omnigraph node math:array threadsafe nodes construct-array


Make Array
==========

.. <description>

Makes an output array attribute from input values, in the order of the inputs. If 'arraySize' is less than the number of input elements, the top 'arraySize' elements will be used. If 'arraySize' is greater than the number of input elements, the last input element will be repeated to fill the remaining space.

.. </description>


Installation
------------

To use this node enable :ref:`omni.graph.nodes<ext_omni_graph_nodes>` in the Extension Manager.


Inputs
------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "inputs:arraySize", "``int``", "The size of the array to create", "1"
    "", "*literalOnly*", "1", ""
    "Array Type (*inputs:arrayType*)", "``token``", "The type of the array ('auto' infers the type from the first connected and resolved input)", "auto"
    "", "*literalOnly*", "1", ""
    "", "*allowedTokens*", "auto,bool[],double[],float[],half[],int[],int64[],token[],uchar[],uint[],uint64[],double[2][],double[3][],double[4][],matrixd[3][],matrixd[4][],float[2][],float[3][],float[4][],half[2][],half[3][],half[4][],int[2][],int[3][],int[4][]", ""
    "inputs:input0", "``any``", "Input array element", "None"


Outputs
-------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "outputs:array", "``any``", "The array of copied values of inputs in the given order", "None"


Metadata
--------
.. csv-table::
    :header: "Name", "Value"
    :widths: 30,70

    "Unique ID", "omni.graph.nodes.ConstructArray"
    "Version", "1"
    "Extension", "omni.graph.nodes"
    "Has State?", "False"
    "Implementation Language", "C++"
    "Default Memory Type", "cpu"
    "Generated Code Exclusions", "None"
    "uiName", "Make Array"
    "Categories", "math:array"
    "Generated Class Name", "OgnConstructArrayDatabase"
    "Python Module", "omni.graph.nodes"

