.. _omni_graph_nodes_WritePrimMaterial_1:

.. _omni_graph_nodes_WritePrimMaterial:

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

:orphan:

.. meta::
    :title: Write Prim Material
    :keywords: lang-en omnigraph node sceneGraph WriteOnly nodes write-prim-material


Write Prim Material
===================

.. <description>

Given a path to a prim and a path to a material on the current USD stage,  assigns the material to the prim.  Gives an error if the given prim or material  can not be found.

.. </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:execIn", "``execution``", "Input execution", "None"
    "inputs:material", "``target``", "The material to be assigned to the prim", "None"
    "Material Path (*inputs:materialPath*)", "``path``", "The path of the material to be assigned to the prim", ""
    "inputs:prim", "``target``", "Prim to be assigned a material.", "None"
    "Prim Path (*inputs:primPath*)", "``path``", "Path of the prim to be assigned a material.", ""


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

    "outputs:execOut", "``execution``", "Output execution", "None"


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

    "Unique ID", "omni.graph.nodes.WritePrimMaterial"
    "Version", "1"
    "Extension", "omni.graph.nodes"
    "Has State?", "False"
    "Implementation Language", "C++"
    "Default Memory Type", "cpu"
    "Generated Code Exclusions", "tests"
    "uiName", "Write Prim Material"
    "Categories", "sceneGraph"
    "Generated Class Name", "OgnWritePrimMaterialDatabase"
    "Python Module", "omni.graph.nodes"

