.. _omni_graph_examples_python_DynamicSwitch_1:

.. _omni_graph_examples_python_DynamicSwitch:

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

:orphan:

.. meta::
    :title: Dynamic Switch
    :keywords: lang-en omnigraph node examples python dynamic-switch


Dynamic Switch
==============

.. <description>

A switch node that will enable the left side or right side depending on the input.  Requires dynamic scheduling to work

.. </description>


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

To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.


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

    "inputs:left_value", "``int``", "Left value to output", "-1"
    "inputs:right_value", "``int``", "Right value to output", "1"
    "inputs:switch", "``int``", "Enables right value if greater than 0, else left value", "0"


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

    "outputs:left_out", "``int``", "Left side output", "0"
    "outputs:right_out", "``int``", "Right side output", "0"


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

    "Unique ID", "omni.graph.examples.python.DynamicSwitch"
    "Version", "1"
    "Extension", "omni.graph.examples.python"
    "Has State?", "False"
    "Implementation Language", "Python"
    "Default Memory Type", "cpu"
    "Generated Code Exclusions", "usd"
    "uiName", "Dynamic Switch"
    "Categories", "examples"
    "Generated Class Name", "OgnDynamicSwitchDatabase"
    "Python Module", "omni.graph.examples.python"

