file_path
stringlengths
21
224
content
stringlengths
0
80.8M
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantTexCoord2hTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantTexCoord2h.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantTexCoord2h" ( docs="""Holds a 2D uv texture coordinate.""" ) { token node:type = "omni.graph.nodes.ConstantTexCoord2h" int node:typeVersion = 1 # 1 attribute custom texCoord2h inputs:value = (0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetGatheredAttributeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetGatheredAttribute.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetGatheredAttribute" ( docs="""Copies gathered scaler/vector attribute values from the Gather buckets into an array attribute PROTOTYPE DO NOT USE, Requires GatherPrototype""" ) { token node:type = "omni.graph.nodes.GetGatheredAttribute" int node:typeVersion = 1 # 2 attributes custom uint64 inputs:gatherId = 0 ( docs="""The GatherId of the Gather containing the attribute values""" ) custom token inputs:name = "" ( docs="""The name of the gathered attribute to join""" ) # 1 attribute custom token outputs:value = "any" ( docs="""The gathered attribute values as an array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMakeVector4Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMakeVector4.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MakeVector4" ( docs="""Merge 4 input values into a single output vector. If the inputs are arrays, the output will be an array of vectors.""" ) { token node:type = "omni.graph.nodes.MakeVector4" int node:typeVersion = 1 # 4 attributes custom token inputs:w ( docs="""The fourth component of the vector""" ) custom token inputs:x ( docs="""The first component of the vector""" ) custom token inputs:y ( docs="""The second component of the vector""" ) custom token inputs:z ( docs="""The third component of the vector""" ) # 1 attribute custom token outputs:tuple ( docs="""Output 4-vector""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetPrimLocalToWorldTransformTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetPrimLocalToWorldTransform.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetPrimLocalToWorldTransform" ( docs="""Given a path to a prim on the current USD stage, return the the transformation matrix. that transforms a vector from the local frame to the global frame """ ) { token node:type = "omni.graph.nodes.GetPrimLocalToWorldTransform" int node:typeVersion = 1 # 3 attributes custom rel inputs:prim ( docs="""The prim used as the local coordinate system when 'usePath' is false""" ) custom token inputs:primPath = "" ( docs="""The path of the prim used as the local coordinate system when 'usePath' is true""" ) custom bool inputs:usePath = true ( docs="""When true, the 'primPath' attribute is used as the path to the prim being read, otherwise it will read the connection at the 'prim' attribute""" ) # 1 attribute custom matrix4d outputs:localToWorldTransform ( docs="""the local to world transformation matrix for the prim""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToDoubleTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToDouble.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ToDouble" ( docs="""Converts the given input to 64 bit double. The node will attempt to convert array and tuple inputs to doubles of the same shape""" ) { token node:type = "omni.graph.nodes.ToDouble" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""The numeric value to convert to double""" ) # 1 attribute custom token outputs:converted ( docs="""Output double-based value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnEventUpdateTickTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnEventUpdateTick.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_UpdateTickEvent" ( docs="""Triggers on update ticks.""" ) { token node:type = "omni.graph.nodes.UpdateTickEvent" int node:typeVersion = 1 # 1 attribute custom uint64 outputs:event ( docs="""Currently incomplete - always 0. Eventually should use a bundle for this.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGatherByPathTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGatherByPath.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GatherByPath" ( docs="""Node to vectorize data by paths passed in via input. PROTOTYPE DO NOT USE. Requires GatherPrototype""" ) { token node:type = "omni.graph.nodes.GatherByPath" int node:typeVersion = 1 # 7 attributes custom bool inputs:allAttributes = true ( docs="""When true, all USD attributes will be gathered. Otherwise those specified by 'attributes' will be gathered.""" ) custom string inputs:attributes = "" ( docs="""A space-separated list of attribute names to be gathered when allAttributes is false""" ) custom bool inputs:checkResyncAttributes = false ( docs="""When true, the data vectorization will be updated when new attributes to the Prims are added.""" ) custom bool inputs:forceExportToHistory = false ( docs="""When true, all USD gathered paths will be tagged for being exported to the history.""" ) custom token inputs:hydraFastPath = "Disabled" ( docs="""When not 'Disabled', will extract USD Geometry transforms into Hydra fast-path attributes. 'World' will add _worldPosition, _worldOrientation. 'Local' will add _localMatrix.""" ) custom token[] inputs:primPaths = [] ( docs="""A list of Prim paths whose data should be vectorized""" ) custom bool inputs:shouldWriteBack = false ( docs="""Write the data back into USD if true.""" ) # 2 attributes custom uint64 outputs:gatherId ( docs="""The GatherId corresponding to this Gather, kInvalidGatherId if the Gather failed""" ) custom token[] outputs:gatheredPaths ( docs="""The list of gathered prim paths in gathered-order""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantHalf2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantHalf2.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantHalf2" ( docs="""Holds a 2-component half constant.""" ) { token node:type = "omni.graph.nodes.ConstantHalf2" int node:typeVersion = 1 # 1 attribute custom half2 inputs:value = (0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnReadGamepadStateTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnReadGamepadState.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ReadGamepadState" ( docs="""Reads the current state of the gamepad""" ) { token node:type = "omni.graph.nodes.ReadGamepadState" int node:typeVersion = 1 # 3 attributes custom float inputs:deadzone = 0.1 ( docs="""Threshold from [0, 1] that the value must pass for it to be registered as input""" ) custom token inputs:gamepadElement = "Left Stick X Axis" ( docs="""The gamepad element to check the state of""" ) custom uint inputs:gamepadId = 0 ( docs="""Gamepad id number starting from 0""" ) # 2 attributes custom bool outputs:isPressed ( docs="""True if the gamepad element is currently pressed, false otherwise""" ) custom float outputs:value ( docs="""Value of how much the gamepad element is being pressed. [0, 1] for buttons [-1, 1] for stick and trigger""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSetMatrix4QuaternionTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSetMatrix4Quaternion.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_SetMatrix4Quaternion" ( docs="""Sets the rotation of the given matrix4d value which represents a linear transformation. Does not modify the translation (row 3) of the matrix.""" ) { token node:type = "omni.graph.nodes.SetMatrix4Quaternion" int node:typeVersion = 1 # 2 attributes custom token inputs:matrix ( docs="""The matrix to be modified""" ) custom token inputs:quaternion ( docs="""The quaternion the matrix will apply about the given rotationAxis.""" ) # 1 attribute custom token outputs:matrix ( docs="""The updated matrix""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnBundleConstructorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnBundleConstructor.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BundleConstructor" ( docs="""This node creates a bundle mirroring all of the dynamic input attributes that have been added to it. If no dynamic attributes exist then the bundle will be empty. See the 'InsertAttribute' node for something that can construct a bundle from existing connected attributes.""" ) { token node:type = "omni.graph.nodes.BundleConstructor" int node:typeVersion = 1 # 1 attribute def Output "outputs_bundle" ( docs="""The bundle consisting of copies of all of the dynamic input attributes.""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetMatrix4TranslationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetMatrix4Translation.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetMatrix4Translation" ( docs="""Gets the translation of the given matrix4d value which represents a linear transformation. Returns a vector3""" ) { token node:type = "omni.graph.nodes.GetMatrix4Translation" int node:typeVersion = 1 # 1 attribute custom token inputs:matrix ( docs="""The matrix to be modified""" ) # 1 attribute custom token outputs:translation ( docs="""The translation from the transformation matrix""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantTexCoord3hTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantTexCoord3h.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantTexCoord3h" ( docs="""Holds a 3D uvw texture coordinate.""" ) { token node:type = "omni.graph.nodes.ConstantTexCoord3h" int node:typeVersion = 1 # 1 attribute custom texCoord3h inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantDouble4Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantDouble4.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantDouble4" ( docs="""Holds a 4-component double constant.""" ) { token node:type = "omni.graph.nodes.ConstantDouble4" int node:typeVersion = 1 # 1 attribute custom double4 inputs:value = (0.0, 0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnBreakVector4Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnBreakVector4.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BreakVector4" ( docs="""Split vector into 4 component values.""" ) { token node:type = "omni.graph.nodes.BreakVector4" int node:typeVersion = 1 # 1 attribute custom token inputs:tuple ( docs="""4-vector to be broken""" ) # 4 attributes custom token outputs:w ( docs="""The fourth component of the vector""" ) custom token outputs:x ( docs="""The first component of the vector""" ) custom token outputs:y ( docs="""The second component of the vector""" ) custom token outputs:z ( docs="""The third component of the vector""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetPrimRelationshipTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetPrimRelationship.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetPrimRelationship" ( docs="""Outputs the paths of the prims associated with a relationship property,""" ) { token node:type = "omni.graph.nodes.GetPrimRelationship" int node:typeVersion = 1 # 2 attributes custom token inputs:name = "" ( docs="""Name of the relationship property""" ) custom token inputs:path = "" ( docs="""Path of the prim with the relationship property""" ) # 1 attribute custom token[] outputs:paths ( docs="""The prim paths for the given relationship""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRenderPreprocessEntryTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRenderPreprocessEntry.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RenderPreProcessEntry" ( docs="""Entry point for RTX Renderer Preprocessing""" ) { token node:type = "omni.graph.nodes.RenderPreProcessEntry" int node:typeVersion = 1 # 3 attributes custom double outputs:hydraTime ( docs="""Hydra time in stage""" ) custom double outputs:simTime ( docs="""Simulation time""" ) custom uint64 outputs:stream ( docs="""Pointer to the CUDA Stream""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAtanTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAtan.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Atan" ( docs="""Trigonometric operation arctangent of one input in degrees.""" ) { token node:type = "omni.graph.nodes.Atan" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""Angle value in degrees whose inverse tan is to be found""" ) # 1 attribute custom token outputs:value ( docs="""The atan value of the input angle in degrees""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnNoiseTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnNoise.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Noise" ( docs="""Sample values from a Perlin noise field. The noise field for any given seed is static: the same input position will always give the same result. This is useful in many areas, such as texturing and animation, where repeatability is essential. If you want a result that varies then you will need to vary either the position or the seed. For example, connecting the 'frame' output of an OnTick node to position will provide a noise result which varies from frame to frame. Perlin noise is locally smooth, meaning that small changes in the sample position will produce small changes in the resulting noise. Varying the seed value will produce a more chaotic result. Another characteristic of Perlin noise is that it is zero at the corners of each cell in the field. In practical terms this means that integral positions, such as 5.0 in a one-dimensional field or (3.0, -1.0) in a two-dimensional field, will return a result of 0.0. Thus, if the source of your sample positions provides only integral values then all of your results will be zero. To avoid this try offsetting your position values by a fractional amount, such as 0.5.""" ) { token node:type = "omni.graph.nodes.Noise" int node:typeVersion = 1 # 2 attributes custom token inputs:position ( docs="""Position(s) within the noise field to be sampled. For a given seed, the same position will always return the same noise value.""" ) custom uint inputs:seed = 0 ( docs="""Seed for generating the noise field.""" ) # 1 attribute custom token outputs:result ( docs="""Value at the selected position(s) in the noise field.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArraySetIndexTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArraySetIndex.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArraySetIndex" ( docs="""Sets an element of an array. If the given index is negative it will be an offset from the end of the array.""" ) { token node:type = "omni.graph.nodes.ArraySetIndex" int node:typeVersion = 1 # 4 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom int inputs:index = 0 ( docs="""The index into the array, a negative value indexes from the end of the array""" ) custom bool inputs:resizeToFit = false ( docs="""When true, and the given positive index is larger than the highest index in the array resize the output array to length 1 + index, and fill the new spaces with zeros""" ) custom token inputs:value ( docs="""The value to set at the given index""" ) # 1 attribute custom token outputs:array ( docs="""The modified array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnNoOpTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnNoOp.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Noop" ( docs="""Empty node used only as a placeholder""" ) { token node:type = "omni.graph.nodes.Noop" int node:typeVersion = 1 } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRpResourceExampleHydraTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRpResourceExampleHydra.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RpResourceExampleHydra" ( docs="""Send RpResource to Hydra""" ) { token node:type = "omni.graph.nodes.RpResourceExampleHydra" int node:typeVersion = 1 # 5 attributes custom uint64[] inputs:pointCountCollection = [] ( docs="""Point count for each prim being deformed""" ) custom token[] inputs:primPathCollection = [] ( docs="""Path for each prim being deformed""" ) custom uint64[] inputs:resourcePointerCollection = [] ( docs="""Pointers to RpResources (two resources per prim are assumed -- one for rest positions and one for deformed positions)""" ) custom bool inputs:sendToHydra = false ( docs="""Send rpresource pointer to hydra using the specified prim path""" ) custom bool inputs:verbose = false ( docs="""verbose printing""" ) # 1 attribute custom bool outputs:reload = false ( docs="""Force RpResource reload""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnNotTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnNot.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BooleanNot" ( docs="""Inverts a bool or bool array""" ) { token node:type = "omni.graph.nodes.BooleanNot" int node:typeVersion = 1 # 1 attribute custom token inputs:valueIn ( docs="""bool or bool array to invert""" ) # 1 attribute custom token outputs:valueOut ( docs="""inverted bool or bool array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnFindPrimsTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnFindPrims.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_FindPrims" ( docs="""Finds Prims on the stage which match the given criteria""" ) { token node:type = "omni.graph.nodes.FindPrims" int node:typeVersion = 1 # 7 attributes custom token inputs:namePrefix = "" ( docs="""Only prims with a name starting with the given prefix will be returned.""" ) custom bool inputs:recursive = false ( docs="""False means only consider children of the root prim, True means all prims in the hierarchy""" ) custom string inputs:requiredAttributes = "" ( docs="""A space-separated list of attribute names that are required to be present on matched prims""" ) custom token inputs:requiredRelationship = "" ( docs="""The name of a relationship which must have a target specified by requiredRelationshipTarget""" ) custom string inputs:requiredRelationshipTarget = "" ( docs="""The path that must be a target of the requiredRelationship""" ) custom token inputs:rootPrimPath = "" ( docs="""Only children of the given prim will be considered. Empty will search the whole stage""" ) custom token inputs:type = "" ( docs="""The type name of the prims to get, Empty means match any type""" ) # 1 attribute custom token[] outputs:primPaths ( docs="""A list of Prim paths which match the given type""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnEndsWithTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnEndsWith.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_EndsWith" ( docs="""Determines if a string ends with a given string value""" ) { token node:type = "omni.graph.nodes.EndsWith" int node:typeVersion = 1 # 2 attributes custom string inputs:suffix = "" ( docs="""The suffix to test""" ) custom string inputs:value = "" ( docs="""The string to check""" ) # 1 attribute custom bool outputs:isSuffix ( docs="""True if 'value' ends with 'suffix'""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnClampTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnClamp.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Clamp" ( docs="""Clamp a number or array of numbers to a specified range. If an array of numbers is provided as the input and lower/upper are scalers Then each input numeric will be clamped to the range [lower, upper] If all inputs are arrays, clamping will be done element-wise. lower & upper are broadcast against input Error will be reported if lower > upper.""" ) { token node:type = "omni.graph.nodes.Clamp" int node:typeVersion = 1 # 3 attributes custom token inputs:input ( docs="""The input numerics to clamp""" ) custom token inputs:lower ( docs="""Lower bound of the clamp""" ) custom token inputs:upper ( docs="""Upper bound of the clamp""" ) # 1 attribute custom token outputs:result ( docs="""The resulting clamped output""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSourceIndicesTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSourceIndices.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_SourceIndices" ( docs="""Takes an input array of index values in 'sourceStartsInTarget' encoded as the list of index values at which the output array value will be incremented, starting at the second entry, and with the last entry into the array being the desired sized of the output array 'sourceIndices'. For example the input [1,2,3,5,6,6] would generate an output array of size 5 (last index) consisting of the values [0,0,2,3,3,3]: - the first two 0s to fill the output array up to index input[1]=2 - the first two 0s to fill the output array up to index input[1]=2 - the 2 to fill the output array up to index input[2]=3 - the three 3s to fill the output array up to index input[3]=6""" ) { token node:type = "omni.graph.nodes.SourceIndices" int node:typeVersion = 1 # 1 attribute custom int[] inputs:sourceStartsInTarget = [] ( docs="""List of index values encoding the increments for the output array values""" ) # 1 attribute custom int[] outputs:sourceIndices = [] ( docs="""Decoded list of index values as described by the node algorithm""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantInt64Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantInt64.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantInt64" ( docs="""Holds a 64 bit signed integer constant value""" ) { token node:type = "omni.graph.nodes.ConstantInt64" int node:typeVersion = 1 # 1 attribute custom int64 inputs:value = 0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSinTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSin.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Sin" ( docs="""Trigonometric operation sine of one input in degrees.""" ) { token node:type = "omni.graph.nodes.Sin" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""Angle in degrees whose sine value is to be found""" ) # 1 attribute custom token outputs:value ( docs="""The sine value of the input angle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnReadPrimTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnReadPrim.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ReadPrim" ( docs="""Exposes readable attributes for a single Prim on the USD stage as outputs on this node. When this node computes it will read the latest attribute values from the target Prim into these node attributes""" ) { token node:type = "omni.graph.nodes.ReadPrim" int node:typeVersion = 1 # 2 attributes custom bool inputs:forceUSDRead = false ( docs="""This flag forces to re-read from USD each time. If set, the node will be re-fetch the value from USD on each execution, else it will read from USD only once, if the value is not in Fabric yet""" ) custom rel inputs:prim ( docs="""The prim to be read from""" ) # 1 attribute def Output "outputs_primBundle" ( docs="""A bundle of the target Prim attributes. In addition to the data attributes, there is a token attribute named sourcePrimPath which contains the path of the Prim being read""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAttrTypeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAttrType.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_AttributeType" ( docs="""Queries information about the type of a specified attribute in an input bundle""" ) { token node:type = "omni.graph.nodes.AttributeType" int node:typeVersion = 1 # 2 attributes custom token inputs:attrName = "input" ( docs="""The name of the attribute to be queried""" ) custom rel inputs:data ( docs="""Bundle of attributes to examine""" ) # 5 attributes custom int outputs:arrayDepth ( docs="""Zero for a single value, one for an array, two for an array of arrays. Set to -1 if the named attribute was not in the bundle.""" ) custom int outputs:baseType ( docs="""An integer representing the type of the individual components. Set to -1 if the named attribute was not in the bundle.""" ) custom int outputs:componentCount ( docs="""Number of components in each tuple, e.g. one for float, three for point3f, 16 for matrix4d. Set to -1 if the named attribute was not in the bundle.""" ) custom int outputs:fullType ( docs="""A single int representing the full type information. Set to -1 if the named attribute was not in the bundle.""" ) custom int outputs:role ( docs="""An integer representing semantic meaning of the type, e.g. point3f vs. normal3f vs. vector3f vs. float3. Set to -1 if the named attribute was not in the bundle.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnExtractBundleTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnExtractBundle.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ExtractBundle" ( docs="""Exposes readable attributes for a bundle as outputs on this node. When this node computes it will read the latest attribute values from the target bundle into these node attributes""" ) { token node:type = "omni.graph.nodes.ExtractBundle" int node:typeVersion = 1 # 1 attribute custom rel inputs:bundle ( docs="""The bundle to be read from""" ) # 1 attribute def Output "outputs_passThrough" ( docs="""The input bundle passed as-is""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAppendStringTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAppendString.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_AppendString" ( docs="""Creates a new token or string by appending the given token or string. token[] inputs will be appended element-wise.""" ) { token node:type = "omni.graph.nodes.AppendString" int node:typeVersion = 1 # 2 attributes custom token inputs:suffix ( docs="""The string to be appended""" ) custom token inputs:value ( docs="""The string(s) to be appended to""" ) # 1 attribute custom token outputs:value ( docs="""The new string(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantFloatTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantFloat.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantFloat" ( docs="""Holds a 32 bit floating point value""" ) { token node:type = "omni.graph.nodes.ConstantFloat" int node:typeVersion = 1 # 1 attribute custom float inputs:value = 0.0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCreateTubeTopologyTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCreateTubeTopology.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_CreateTubeTopology" ( docs="""Creates the face vertex counts and indices describing a tube topology with the given number of rows and columns.""" ) { token node:type = "omni.graph.nodes.CreateTubeTopology" int node:typeVersion = 1 # 2 attributes custom int[] inputs:cols = [] ( docs="""Array of columns in the topology to be generated""" ) custom int[] inputs:rows = [] ( docs="""Array of rows in the topology to be generated""" ) # 2 attributes custom int[] outputs:faceVertexCounts ( docs="""Array of vertex counts for each face in the tube topology""" ) custom int[] outputs:faceVertexIndices ( docs="""Array of vertex indices for each face in the tube topology""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantPiTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantPi.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantPi" ( docs="""Holds a 64-bit floating point constant value that is a multiple of Pi""" ) { token node:type = "omni.graph.nodes.ConstantPi" int node:typeVersion = 1 # 1 attribute custom double inputs:factor = 1 ( docs="""Multiply this by Pi to get the result""" ) # 1 attribute custom double outputs:value ( docs="""Pi multiplied by the input factor""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantUIntTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantUInt.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantUInt" ( docs="""Holds a 32 bit unsigned integer value""" ) { token node:type = "omni.graph.nodes.ConstantUInt" int node:typeVersion = 1 # 1 attribute custom uint inputs:value = 0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnHasAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnHasAttr.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_HasAttribute" ( docs="""Inspect an input bundle for a named attribute, setting output to true if it exists""" ) { token node:type = "omni.graph.nodes.HasAttribute" int node:typeVersion = 1 # 2 attributes custom token inputs:attrName = "points" ( docs="""Name of the attribute to look for in the bundle""" ) custom rel inputs:data ( docs="""Collection of attributes that may contain the named attribute""" ) # 1 attribute custom bool outputs:output ( docs="""True if the named attribute was found in the bundle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetLocationAtDistanceOnCurveTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetLocationAtDistanceOnCurve.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetLocationAtDistanceOnCurve" ( docs="""Given a set of curve points and a normalized distance between 0-1.0, return the location on a closed curve. 0 is the first point on the curve, 1.0 is also the first point because the is an implicit segment connecting the first and last points. Values outside the range 0-1.0 will be wrapped to that range, for example -0.4 is equivalent to 0.6 and 1.3 is equivalent to 0.3 This is a simplistic curve-following node, intended for curves in a plane, for prototyping purposes.""" ) { token node:type = "omni.graph.nodes.GetLocationAtDistanceOnCurve" int node:typeVersion = 1 # 4 attributes custom point3d[] inputs:curve = [] ( docs="""The curve to be examined""" ) custom double[] inputs:distance = [] ( docs="""The distances along the curve, wrapped to the range 0-1.0""" ) custom token inputs:forwardAxis = "X" ( docs="""The direction vector from which the returned rotation is relative, one of X, Y, Z""" ) custom token inputs:upAxis = "Y" ( docs="""The world Up vector, the curve should be in a plane perpendicular with this - one of X, Y, Z""" ) # 3 attributes custom point3d[] outputs:location ( docs="""Locations""" ) custom quatf[] outputs:orientation ( docs="""Orientations""" ) custom vector3d[] outputs:rotateXYZ ( docs="""Rotations""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnTranslateToLocationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnTranslateToLocation.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_TranslateToLocation" ( docs="""Perform a smooth translation maneuver, translating a prim to a desired point given a speed and easing factor""" ) { token node:type = "omni.graph.nodes.TranslateToLocation" int node:typeVersion = 1 # 8 attributes custom uint inputs:execIn ( docs="""The input execution""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom rel inputs:prim ( docs="""The prim to be translated""" ) custom string inputs:primPath ( docs="""The source prim to be transformed, used when 'usePath' is true""" ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom uint inputs:stop ( docs="""Stops the maneuver""" ) custom vector3d inputs:target = (0.0, 0.0, 0.0) ( docs="""The desired local position""" ) custom bool inputs:usePath = false ( docs="""When true, the 'primPath' attribute is used, otherwise it will read the connection at the 'prim' attribute""" ) # 1 attribute custom uint outputs:finished ( docs="""The output execution, sent one the maneuver is completed""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnXorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnXor.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BooleanXor" ( docs="""Boolean XOR on two inputs. If a and b are arrays, XOR operations will be performed pair-wise. Sizes of a and b must match. If only one input is an array, the other input will be broadcast to the size of the array. Returns an array of booleans if either input is an array, otherwise returning a boolean.""" ) { token node:type = "omni.graph.nodes.BooleanXor" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Input A: bool or bool array.""" ) custom token inputs:b ( docs="""Input B: bool or bool array.""" ) # 1 attribute custom token outputs:result ( docs="""The result of the boolean XOR - an array of booleans if either input is an array, otherwise a boolean.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRotateToOrientationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRotateToOrientation.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RotateToOrientation" ( docs="""Perform a smooth rotation maneuver, rotating a prim to a desired orientation given a speed and easing factor""" ) { token node:type = "omni.graph.nodes.RotateToOrientation" int node:typeVersion = 1 # 8 attributes custom uint inputs:execIn ( docs="""The input execution""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom rel inputs:prim ( docs="""The prim to be rotated""" ) custom string inputs:primPath ( docs="""The source prim to be transformed, used when 'usePath' is true""" ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom uint inputs:stop ( docs="""Stops the maneuver""" ) custom vector3d inputs:target = (0.0, 0.0, 0.0) ( docs="""The desired orientation as euler angles (XYZ) in local space""" ) custom bool inputs:usePath = false ( docs="""When true, the 'primPath' attribute is used, otherwise it will read the connection at the 'prim' attribute""" ) # 1 attribute custom uint outputs:finished ( docs="""The output execution, sent one the maneuver is completed""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCurveFrameTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCurveFrame.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_CurveToFrame" ( docs="""Create a frame object based on a curve description""" ) { token node:type = "omni.graph.nodes.CurveToFrame" int node:typeVersion = 1 # 3 attributes custom float3[] inputs:curvePoints = [] ( docs="""Points on the curve to be framed""" ) custom int[] inputs:curveVertexCounts = [] ( docs="""Vertex counts for the curve points""" ) custom int[] inputs:curveVertexStarts = [] ( docs="""Vertex starting points""" ) # 3 attributes custom float3[] outputs:out ( docs="""Out vector directions on the curve frame""" ) custom float3[] outputs:tangent ( docs="""Tangents on the curve frame""" ) custom float3[] outputs:up ( docs="""Up vectors on the curve frame""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnDistance3DTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnDistance3D.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Distance3D" ( docs="""Computes the distance between two 3D points A and B. Which is the length of the vector with start and end points A and B If one input is an array and the other is a single point, the scaler will be broadcast to the size of the array""" ) { token node:type = "omni.graph.nodes.Distance3D" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Vector A""" ) custom token inputs:b ( docs="""Vector B""" ) # 1 attribute custom token outputs:distance ( docs="""The distance between the input vectors""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnFloorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnFloor.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Floor" ( docs="""Computes the floor of the given decimal number a, which is the largest integral value not greater than a""" ) { token node:type = "omni.graph.nodes.Floor" int node:typeVersion = 1 # 1 attribute custom token inputs:a ( docs="""The decimal number""" ) # 1 attribute custom token outputs:result ( docs="""The floor of the input a""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnDivideTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnDivide.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Divide" ( docs="""Computes the division of two values: A / B. The result is the same type as the numerator if the numerator is a decimal type. Otherwise the result is a double. Vectors can be divided only by a scaler, the result being a vector in the same direction with a scaled length. Note that there are combinations of inputs that can result in a loss of precision due to different value ranges. Division by zero is an error.""" ) { token node:type = "omni.graph.nodes.Divide" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""The numerator A""" ) custom token inputs:b ( docs="""The denominator B""" ) # 1 attribute custom token outputs:result ( docs="""Result of division""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnOrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnOr.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BooleanOr" ( docs="""Boolean OR on two inputs. If a and b are arrays, OR operations will be performed pair-wise. Sizes of a and b must match. If only one input is an array, the other input will be broadcast to the size of the array. Returns an array of booleans if either input is an array, otherwise returning a boolean.""" ) { token node:type = "omni.graph.nodes.BooleanOr" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Input A: bool or bool array.""" ) custom token inputs:b ( docs="""Input B: bool or bool array.""" ) # 1 attribute custom token outputs:result ( docs="""The result of the boolean OR - an array of booleans if either input is an array, otherwise a boolean.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantDouble3Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantDouble3.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantDouble3" ( docs="""Holds a 3-component double constant.""" ) { token node:type = "omni.graph.nodes.ConstantDouble3" int node:typeVersion = 1 # 1 attribute custom double3 inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMakeTransformLookAtTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMakeTransformLookAt.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MakeTransformLookAt" ( docs="""Make a transformation matrix from eye, center world-space position and an up vector. Forward vector is negative Z direction computed from eye-center and normalized. Up is positive Y direction. Right is the positive X direction.""" ) { token node:type = "omni.graph.nodes.MakeTransformLookAt" int node:typeVersion = 1 # 3 attributes custom vector3d inputs:center = (0, 0, 0) ( docs="""The desired center position in world-space""" ) custom vector3d inputs:eye = (1, 0, 0) ( docs="""The desired look at position in world-space""" ) custom vector3d inputs:up = (0, 1, 0) ( docs="""The desired up vector""" ) # 1 attribute custom matrix4d outputs:transform ( docs="""The resulting transformation matrix""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSetGatheredAttributeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSetGatheredAttribute.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_SetGatheredAttribute" ( docs="""Writes a value into the given Gathered attribute. If the number elements of the value is less than the gathered attribute, the value will be broadcast to all prims. If the given value has more elements than the gathered attribute, an error will be produced. PROTOTYPE DO NOT USE, Requires GatherPrototype""" ) { token node:type = "omni.graph.nodes.SetGatheredAttribute" int node:typeVersion = 1 # 5 attributes custom uint inputs:execIn ( docs="""Input execution state""" ) custom uint64 inputs:gatherId = 0 ( docs="""The GatherId of the gathered prims""" ) custom bool[] inputs:mask ( docs="""Only writes values to the indexes which are true.""" ) custom token inputs:name = "" ( docs="""The name of the attribute to set in the given Gather""" ) custom token inputs:value = "any" ( docs="""The new value to be written to the gathered attributes""" ) # 1 attribute custom uint outputs:execOut ( docs="""Output execution""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnDotProductTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnDotProduct.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_DotProduct" ( docs="""Compute the dot product of two (arrays of) vectors. If two arrays of vectors are provided, then the dot product will be taken element-wise. Inputs must be the same shape""" ) { token node:type = "omni.graph.nodes.DotProduct" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""The first vector in the dot product""" ) custom token inputs:b ( docs="""The second vector in the dot product""" ) # 1 attribute custom token outputs:product ( docs="""The resulting product""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnWriteSettingTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnWriteSetting.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_WriteSetting" ( docs="""Node that writes a value to a kit application setting. Issues an error if input::value type does not match setting type.""" ) { token node:type = "omni.graph.nodes.WriteSetting" int node:typeVersion = 1 # 3 attributes custom uint inputs:execIn ( docs="""Input execution state""" ) custom string inputs:settingPath = "" ( docs="""The path of the setting to be modified""" ) custom token inputs:value ( docs="""The new value to be written""" ) # 1 attribute custom uint outputs:execOut ( docs="""Output execution""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAddTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAdd.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Add" ( docs="""Add two values of any numeric type (element-wise). This includes simple values, tuples, arrays, and arrays of tuples. If one input has a higher dimension than the other, then the input with lower dimension will be repeated to match the dimension of the other input (broadcasting). eg: scalar + tuple, tuple + array of tuples, scalar + array of tuples.""" ) { token node:type = "omni.graph.nodes.Add" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""First number or collection of numbers to add""" ) custom token inputs:b ( docs="""Second number or collection of numbers to add""" ) # 1 attribute custom token outputs:sum ( docs="""Sum of the two numbers or collection of numbers""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayFindValueTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayFindValue.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayFindValue" ( docs="""Searches for a value in an array, returns the index of the first occurrence of the value, or -1 if not found.""" ) { token node:type = "omni.graph.nodes.ArrayFindValue" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be searched""" ) custom token inputs:value ( docs="""The value to be found""" ) # 1 attribute custom int outputs:index ( docs="""The index of the first occurrence of value, or -1 if not found""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayLengthTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayLength.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayLength" ( docs="""Outputs the length of a specified array attribute in an input bundle, or 1 if the attribute is not an array attribute""" ) { token node:type = "omni.graph.nodes.ArrayLength" int node:typeVersion = 1 # 2 attributes custom token inputs:attrName = "points" ( docs="""Name of the attribute whose array length will be queried""" ) custom rel inputs:data ( docs="""Collection of attributes that may contain the named attribute""" ) # 1 attribute custom uint64 outputs:length ( docs="""The length of the array attribute in the input bundle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnIsPrimSelectedTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnIsPrimSelected.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_IsPrimSelected" ( docs="""Checks if the prim at the given path is currently selected""" ) { token node:type = "omni.graph.nodes.IsPrimSelected" int node:typeVersion = 1 # 1 attribute custom token inputs:primPath = "" ( docs="""The prim path to check""" ) # 1 attribute custom bool outputs:isSelected ( docs="""True if the given path is in the current stage selection""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMakeArrayTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMakeArray.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MakeArray" ( docs="""Makes an output array attribute from input values, in the order of the inputs. If 'arraySize' is less than 5, the top 'arraySize' elements will be taken. If 'arraySize' is greater than 5 element e will be repeated to fill the remaining space""" ) { token node:type = "omni.graph.nodes.MakeArray" int node:typeVersion = 1 # 6 attributes custom token inputs:a ( docs="""Element 1""" ) custom int inputs:arraySize = 0 ( docs="""The size of the array to create""" ) custom token inputs:b ( docs="""Element 2""" ) custom token inputs:c ( docs="""Element 3""" ) custom token inputs:d ( docs="""Element 4""" ) custom token inputs:e ( docs="""Element 5""" ) # 1 attribute custom token outputs:array ( docs="""The array of copied values of inputs in the given order""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGpuInteropCudaEntryTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGpuInteropCudaEntry.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GpuInteropCudaEntry" ( docs="""Entry point for Cuda RTX Renderer Postprocessing""" ) { token node:type = "omni.graph.nodes.GpuInteropCudaEntry" int node:typeVersion = 1 # 1 attribute custom string inputs:sourceName = "ldrColor" ( docs="""Source name of the AOV""" ) # 10 attributes custom uint outputs:bufferSize ( docs="""Size of the buffer""" ) custom uint64 outputs:cudaMipmappedArray ( docs="""Pointer to the CUDA Mipmapped Array""" ) custom uint64 outputs:format ( docs="""Format""" ) custom uint outputs:height ( docs="""Height""" ) custom double outputs:hydraTime ( docs="""Hydra time in stage""" ) custom bool outputs:isBuffer ( docs="""True if the entry exposes a buffer as opposed to a texture""" ) custom uint outputs:mipCount ( docs="""Mip Count""" ) custom double outputs:simTime ( docs="""Simulation time""" ) custom uint64 outputs:stream ( docs="""Pointer to the CUDA Stream""" ) custom uint outputs:width ( docs="""Width""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMakeVector3Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMakeVector3.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MakeVector3" ( docs="""Merge 3 input values into a single output vector. If the inputs are arrays, the output will be an array of vectors.""" ) { token node:type = "omni.graph.nodes.MakeVector3" int node:typeVersion = 1 # 3 attributes custom token inputs:x ( docs="""The first component of the vector""" ) custom token inputs:y ( docs="""The second component of the vector""" ) custom token inputs:z ( docs="""The third component of the vector""" ) # 1 attribute custom token outputs:tuple ( docs="""Output 3-vector(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRpResourceExampleAllocatorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRpResourceExampleAllocator.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RpResourceExampleAllocator" ( docs="""Allocate CUDA-interoperable RpResource""" ) { token node:type = "omni.graph.nodes.RpResourceExampleAllocator" int node:typeVersion = 1 # 5 attributes custom float3[] inputs:points = [] ( docs="""Points attribute input. Points and a prim path may be supplied directly as an alternative to a bundle input.""" ) custom token inputs:primPath = "" ( docs="""Prim path input. Points and a prim path may be supplied directly as an alternative to a bundle input.""" ) custom bool inputs:reload = false ( docs="""Force RpResource reload""" ) custom uint64 inputs:stream = 0 ( docs="""Pointer to the CUDA Stream""" ) custom bool inputs:verbose = false ( docs="""verbose printing""" ) # 5 attributes custom uint64[] outputs:pointCountCollection ( docs="""Point count for each prim being deformed""" ) custom token[] outputs:primPathCollection ( docs="""Path for each prim being deformed""" ) custom bool outputs:reload = false ( docs="""Force RpResource reload""" ) custom uint64[] outputs:resourcePointerCollection ( docs="""Pointers to RpResources (two resources per prim are allocated -- one for rest positions and one for deformed positions)""" ) custom uint64 outputs:stream ( docs="""Pointer to the CUDA Stream""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnTanTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnTan.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Tan" ( docs="""Trigonometric operation tangent of one input in degrees.""" ) { token node:type = "omni.graph.nodes.Tan" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""Angle in degrees whose tangent value is to be found""" ) # 1 attribute custom token outputs:value ( docs="""The tangent value of the input angle in degrees""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnInvertMatrixTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnInvertMatrix.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_OgnInvertMatrix" ( docs="""Invert a matrix or an array of matrices. Returns the FLOAT_MAX * identity if the matrix is singular""" ) { token node:type = "omni.graph.nodes.OgnInvertMatrix" int node:typeVersion = 1 # 1 attribute custom token inputs:matrix ( docs="""The input matrix or matrices to invert""" ) # 1 attribute custom token outputs:invertedMatrix ( docs="""the resulting inverted matrix or matrices""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantFloat2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantFloat2.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantFloat2" ( docs="""Holds a 2-component float constant.""" ) { token node:type = "omni.graph.nodes.ConstantFloat2" int node:typeVersion = 1 # 1 attribute custom float2 inputs:value = (0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantInt2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantInt2.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantInt2" ( docs="""Holds a 2-component int constant.""" ) { token node:type = "omni.graph.nodes.ConstantInt2" int node:typeVersion = 1 # 1 attribute custom int2 inputs:value = (0, 0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAcosTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAcos.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Acos" ( docs="""Trigonometric operation arccosine of one input in degrees.""" ) { token node:type = "omni.graph.nodes.Acos" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""Angle value in degrees whose inverse cosine is to be found""" ) # 1 attribute custom token outputs:value ( docs="""The arccos value of the input angle in degrees""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnInsertAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnInsertAttr.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_InsertAttribute" ( docs="""Copies all attributes from an input bundle to the output bundle, as well as copying an additional 'attrToInsert' attribute from the node itself with a specified name.""" ) { token node:type = "omni.graph.nodes.InsertAttribute" int node:typeVersion = 1 # 3 attributes custom token inputs:attrToInsert = "any" ( docs="""The the attribute to be copied from the node to the output bundle""" ) custom rel inputs:data ( docs="""Initial bundle of attributes""" ) custom token inputs:outputAttrName = "attr0" ( docs="""The name of the new output attribute in the bundle""" ) # 1 attribute def Output "outputs_data" ( docs="""Bundle of input attributes with the new one inserted with the specified name""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayResizeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayResize.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayResize" ( docs="""Resizes an array. If the new size is larger, zeroed values will be added to the end.""" ) { token node:type = "omni.graph.nodes.ArrayResize" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom int inputs:newSize = 0 ( docs="""The new size of the array, negative values are treated as size of 0""" ) # 1 attribute custom token outputs:array ( docs="""The modified array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnNandTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnNand.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BooleanNand" ( docs="""Boolean NAND on two inputs. If a and b are arrays, NAND operations will be performed pair-wise. Sizes of a and b must match. If only one input is an array, the other input will be broadcast to the size of the array. Returns an array of booleans if either input is an array, otherwise returning a boolean.""" ) { token node:type = "omni.graph.nodes.BooleanNand" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Input A: bool or bool array.""" ) custom token inputs:b ( docs="""Input B: bool or bool array.""" ) # 1 attribute custom token outputs:result ( docs="""The result of the boolean NAND - an array of booleans if either input is an array, otherwise a boolean.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnIncrementTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnIncrement.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Increment" ( docs="""Add a double argument to any type (element-wise). This includes simple values, tuples, arrays, and arrays of tuples. The output type is always the same as the type of input:value. For example: tuple + double results a tuple. Chopping is used for approximation. For example: 4 + 3.2 will result 7. The default increment value is 1.0. """ ) { token node:type = "omni.graph.nodes.Increment" int node:typeVersion = 1 # 2 attributes custom double inputs:increment = 1.0 ( docs="""The number added to the first operand""" ) custom token inputs:value ( docs="""The operand that to be increased""" ) # 1 attribute custom token outputs:result ( docs="""Result of the increment""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantInt4Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantInt4.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantInt4" ( docs="""Holds a 4-component int constant.""" ) { token node:type = "omni.graph.nodes.ConstantInt4" int node:typeVersion = 1 # 1 attribute custom int4 inputs:value = (0, 0, 0, 0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRoundTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRound.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Round" ( docs="""Round a decimal input to the given number of decimals. Accepts float, double, half, or arrays / tuples of the aformentioned types""" ) { token node:type = "omni.graph.nodes.Round" int node:typeVersion = 1 # 2 attributes custom int inputs:decimals = 0 ( docs="""The number of decimal places to round to. Negative numbers specify the number of positions left of the decimal""" ) custom token inputs:input ( docs="""The input data to round""" ) # 1 attribute custom token outputs:output ( docs="""The resultant rounded numbers""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnBreakVector3Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnBreakVector3.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BreakVector3" ( docs="""Split vector into 3 component values.""" ) { token node:type = "omni.graph.nodes.BreakVector3" int node:typeVersion = 1 # 1 attribute custom token inputs:tuple ( docs="""3-vector to be broken""" ) # 3 attributes custom token outputs:x ( docs="""The first component of the vector""" ) custom token outputs:y ( docs="""The second component of the vector""" ) custom token outputs:z ( docs="""The third component of the vector""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCrossProductTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCrossProduct.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_CrossProduct" ( docs="""Compute the cross product of two (arrays of) vectors of the same size The cross product of two 3d vectors is a vector perpendicular to both inputs If arrays of vectors are provided, the cross-product is computed row-wise between a and b""" ) { token node:type = "omni.graph.nodes.CrossProduct" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""The first vector in the cross product""" ) custom token inputs:b ( docs="""The second vector in the cross product""" ) # 1 attribute custom token outputs:product ( docs="""The resulting product""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnTransformVectorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnTransformVector.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_TransformVector" ( docs="""Applies a transformation matrix to a row vector, returning the result. returns vector * matrix If the vector is one dimension smaller than the matrix (eg a 4x4 matrix and a 3d vector), The last component of the vector will be treated as a 1. The result is then projected back to a 3-vector. Supports mixed array inputs, eg a single matrix and an array of vectors.""" ) { token node:type = "omni.graph.nodes.TransformVector" int node:typeVersion = 1 # 2 attributes custom token inputs:matrix ( docs="""The transformation matrix to be applied""" ) custom token inputs:vector ( docs="""The row vector(s) to be translated""" ) # 1 attribute custom token outputs:result ( docs="""The transformed row vector(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRenameAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRenameAttr.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RenameAttribute" ( docs="""Changes the names of attributes from an input bundle for the corresponding output bundle. Attributes whose names are not in the 'inputAttrNames' list will be copied from the input bundle to the output bundle without changing the name.""" ) { token node:type = "omni.graph.nodes.RenameAttribute" int node:typeVersion = 1 # 3 attributes custom rel inputs:data ( docs="""Collection of attributes to be renamed""" ) custom token inputs:inputAttrNames = "" ( docs="""Comma or space separated text, listing the names of attributes in the input data to be renamed""" ) custom token inputs:outputAttrNames = "" ( docs="""Comma or space separated text, listing the new names for the attributes listed in inputAttrNames""" ) # 1 attribute def Output "outputs_data" ( docs="""Final bundle of attributes, with attributes renamed based on inputAttrNames and outputAttrNames""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnNegateTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnNegate.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Negate" ( docs="""Computes the result of multiplying a vector, scalar, or array of vectors or scalars by -1. The input must not be unsigned.""" ) { token node:type = "omni.graph.nodes.Negate" int node:typeVersion = 1 # 1 attribute custom token inputs:input ( docs="""The vector(s) or scalar(s) to negate""" ) # 1 attribute custom token outputs:output ( docs="""The resulting negated value(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantIntTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantInt.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantInt" ( docs="""Holds a 32 bit signed integer constant value""" ) { token node:type = "omni.graph.nodes.ConstantInt" int node:typeVersion = 1 # 1 attribute custom int inputs:value = 0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantFloat4Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantFloat4.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantFloat4" ( docs="""Holds a 4-component float constant.""" ) { token node:type = "omni.graph.nodes.ConstantFloat4" int node:typeVersion = 1 # 1 attribute custom float4 inputs:value = (0.0, 0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetPrimPathTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetPrimPath.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetPrimPath" ( docs="""Generates a path from the specified relationship. This is useful when an absolute prim path may change.""" ) { token node:type = "omni.graph.nodes.GetPrimPath" int node:typeVersion = 2 # 1 attribute custom rel inputs:prim ( docs="""The prim to determine the path of""" ) # 2 attributes custom string outputs:path ( docs="""The absolute path of the given prim""" ) custom token outputs:primPath ( docs="""The absolute path of the given prim as a token (DEPRECATED)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMatrixMultiplyTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMatrixMultiply.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MatrixMultiply" ( docs="""Computes the matrix product of the inputs. Inputs must be compatible. Also accepts tuples (treated as vectors) as inputs. Tuples in input A will be treated as row vectors. Tuples in input B will be treated as column vectors. Arrays of inputs will be computed element-wise with broadcasting if necessary. """ ) { token node:type = "omni.graph.nodes.MatrixMultiply" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""First matrix or row vector to multiply""" ) custom token inputs:b ( docs="""Second matrix or column vector to multiply""" ) # 1 attribute custom token outputs:output ( docs="""Product of the two matrices""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnNorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnNor.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BooleanNor" ( docs="""Boolean NOR on two inputs. If a and b are arrays, NOR operations will be performed pair-wise. Sizes of a and b must match. If only one input is an array, the other input will be broadcast to the size of the array. Returns an array of booleans if either input is an array, otherwise returning a boolean.""" ) { token node:type = "omni.graph.nodes.BooleanNor" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Input A: bool or bool array.""" ) custom token inputs:b ( docs="""Input B: bool or bool array.""" ) # 1 attribute custom token outputs:result ( docs="""The result of the boolean NOR - an array of booleans if either input is an array, otherwise a boolean.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConcatenateFloat3ArraysTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConcatenateFloat3Arrays.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConcatenateFloat3Arrays" ( docs="""Flatten the array of float3 arrays in 'inputArrays' by concatenating all of the array contents into a single float3 array in 'outputArray'. The sizes of each of the input arrays is preserved in the output 'arraySizes'.""" ) { token node:type = "omni.graph.nodes.ConcatenateFloat3Arrays" int node:typeVersion = 1 # 1 attribute custom token inputs:inputArrays = "any" ( docs="""Array of arrays of float3 values to be flattened""" ) # 2 attributes custom int[] outputs:arraySizes ( docs="""List of sizes of each of the float3 input arrays""" ) custom float3[] outputs:outputArray ( docs="""Flattened array of float3 values""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayRemoveIndexTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayRemoveIndex.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayRemoveIndex" ( docs="""Removes an element of an array by index. If the given index is negative it will be an offset from the end of the array.""" ) { token node:type = "omni.graph.nodes.ArrayRemoveIndex" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom int inputs:index = 0 ( docs="""The index into the array, a negative value indexes from the end of the array""" ) # 1 attribute custom token outputs:array ( docs="""The modified array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantPathTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantPath.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantPath" ( docs="""Holds a path constant value""" ) { token node:type = "omni.graph.nodes.ConstantPath" int node:typeVersion = 1 # 1 attribute custom string inputs:value = "" ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnReadVariableTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnReadVariable.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_core_ReadVariable" ( docs="""Node that reads a value from a variable""" ) { token node:type = "omni.graph.core.ReadVariable" int node:typeVersion = 1 # 3 attributes custom rel inputs:graph ( docs="""Ignored. Do not use""" ) custom token inputs:targetPath ( docs="""Ignored. Do not use.""" ) custom token inputs:variableName = "" ( docs="""The name of the graph variable to use.""" ) # 1 attribute custom token outputs:value = "any" ( docs="""The variable value that we returned.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRenderPostprocessEntryTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRenderPostprocessEntry.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RenderPostProcessEntry" ( docs="""Entry point for RTX Renderer Postprocessing""" ) { token node:type = "omni.graph.nodes.RenderPostProcessEntry" int node:typeVersion = 1 # 1 attribute custom string inputs:sourceName = "ldrColor" ( docs="""Source name of the AOV""" ) # 8 attributes custom uint64 outputs:cudaMipmappedArray ( docs="""Pointer to the CUDA Mipmapped Array""" ) custom uint64 outputs:format ( docs="""Format""" ) custom uint outputs:height ( docs="""Height""" ) custom double outputs:hydraTime ( docs="""Hydra time in stage""" ) custom uint outputs:mipCount ( docs="""Mip Count""" ) custom double outputs:simTime ( docs="""Simulation time""" ) custom uint64 outputs:stream ( docs="""Pointer to the CUDA Stream""" ) custom uint outputs:width ( docs="""Width""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAndTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAnd.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BooleanAnd" ( docs="""Boolean AND on two inputs. If a and b are arrays, AND operations will be performed pair-wise. Sizes of a and b must match. If only one input is an array, the other input will be broadcast to the size of the array. Returns an array of booleans if either input is an array, otherwise returning a boolean.""" ) { token node:type = "omni.graph.nodes.BooleanAnd" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Input A: bool or bool array.""" ) custom token inputs:b ( docs="""Input B: bool or bool array.""" ) # 1 attribute custom token outputs:result ( docs="""The result of the boolean AND - an array of booleans if either input is an array, otherwise a boolean.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantColor4fTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantColor4f.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantColor4f" ( docs="""Holds a 4-component color constant, which is energy-linear RGBA, not pre-alpha multiplied""" ) { token node:type = "omni.graph.nodes.ConstantColor4f" int node:typeVersion = 1 # 1 attribute custom color4f inputs:value = (0.0, 0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAppendPathTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAppendPath.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_AppendPath" ( docs="""Creates a USD path by appending the given relative path to the given root or prim path""" ) { token node:type = "omni.graph.nodes.AppendPath" int node:typeVersion = 1 # 2 attributes custom token inputs:path ( docs="""The path(s) to be appended to. Must be a base or prim path""" ) custom token inputs:suffix = "" ( docs="""The prim or prim-property path to append""" ) # 1 attribute custom token outputs:path ( docs="""The new path(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnLengthAlongCurveTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnLengthAlongCurve.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_LengthAlongCurve" ( docs="""Find the length along the curve of a set of points""" ) { token node:type = "omni.graph.nodes.LengthAlongCurve" int node:typeVersion = 1 # 4 attributes custom float3[] inputs:curvePoints = [] ( docs="""Points on the curve to be framed""" ) custom int[] inputs:curveVertexCounts = [] ( docs="""Vertex counts for the curve points""" ) custom int[] inputs:curveVertexStarts = [] ( docs="""Vertex starting points""" ) custom bool inputs:normalize = false ( docs="""If true then normalize the curve length to a 0, 1 range""" ) # 1 attribute custom float[] outputs:length ( docs="""List of lengths along the curve corresponding to the input points""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnIsZeroTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnIsZero.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_IsZero" ( docs="""Outputs a boolean indicating if all of the input values are zero within a specified tolerance.""" ) { token node:type = "omni.graph.nodes.IsZero" int node:typeVersion = 1 # 2 attributes custom double inputs:tolerance = 0.0 ( docs="""How close the value must be to 0 to be considered "zero".""" ) custom token inputs:value ( docs="""Value(s) to check for zero.""" ) # 1 attribute custom bool outputs:result ( docs="""If 'value' is a scalar then 'result' will be true if 'value' is zero. If 'value' is non-scalar (array, tuple, matrix, etc) then 'result' will be true if all of its elements/components are zero.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantTexCoord3fTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantTexCoord3f.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantTexCoord3f" ( docs="""Holds a 3D uvw texture coordinate.""" ) { token node:type = "omni.graph.nodes.ConstantTexCoord3f" int node:typeVersion = 1 # 1 attribute custom texCoord3f inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnTrigTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnTrig.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Trig" ( docs="""Trigonometric operation of one input in degrees. Supported operations are: SIN, COS, TAN, ARCSIN, ARCCOS, ARCTAN, DEGREES, RADIANS""" ) { token node:type = "omni.graph.nodes.Trig" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""Input to the function""" ) custom token inputs:operation = "SIN" ( docs="""The operation to perform""" ) # 1 attribute custom token outputs:result ( docs="""The result of the function""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMoveToTransformTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMoveToTransform.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MoveToTransform" ( docs="""Perform a transformation maneuver, moving a prim to a target transformation given a speed and easing factor. Transformation, Rotation, and Scale from a 4x4 transformation matrix will be applied Note: The Prim must have xform:orient in transform stack in order to interpolate rotations""" ) { token node:type = "omni.graph.nodes.MoveToTransform" int node:typeVersion = 1 # 8 attributes custom uint inputs:execIn ( docs="""The input execution""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom rel inputs:prim ( docs="""The prim to be transformed""" ) custom string inputs:primPath ( docs="""The source prim to be transformed, used when 'usePath' is true""" ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom uint inputs:stop ( docs="""Stops the maneuver""" ) custom matrix4d inputs:target = ((1.0, 0.0, 0.0, 0.0), (0.0, 1.0, 0.0, 0.0), (0.0, 0.0, 1.0, 0.0), (0.0, 0.0, 0.0, 1.0)) ( docs="""The desired local transform""" ) custom bool inputs:usePath = false ( docs="""When true, the 'primPath' attribute is used, otherwise it will read the connection at the 'prim' attribute""" ) # 1 attribute custom uint outputs:finished ( docs="""The output execution, sent one the maneuver is completed""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCosTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCos.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Cos" ( docs="""Trigonometric operation cosine of one input in degrees.""" ) { token node:type = "omni.graph.nodes.Cos" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""Angle in degrees whose cosine value is to be found""" ) # 1 attribute custom token outputs:value ( docs="""The cosine value of the input angle in degrees""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnBreakVector2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnBreakVector2.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BreakVector2" ( docs="""Split vector into 2 component values.""" ) { token node:type = "omni.graph.nodes.BreakVector2" int node:typeVersion = 1 # 1 attribute custom token inputs:tuple ( docs="""2-vector to be broken""" ) # 2 attributes custom token outputs:x ( docs="""The first component of the vector""" ) custom token outputs:y ( docs="""The second component of the vector""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnFModTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnFMod.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_FMod" ( docs="""Computes the floating point remainder of A / B. If B is zero, the result is zero. The returned value has the same sign as A""" ) { token node:type = "omni.graph.nodes.FMod" int node:typeVersion = 1 # 2 attributes custom token inputs:a ( docs="""The dividend of (A / B)""" ) custom token inputs:b ( docs="""The divisor of (A / B)""" ) # 1 attribute custom token outputs:result ( docs="""The floating point remainder of A / B""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMoveToTargetTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMoveToTarget.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MoveToTarget" ( docs="""This node smoothly translates, rotates, and scales a prim object to a target prim object given a speed and easing factor. At the end of the maneuver, the source prim will have the translation, rotation, and scale of the target prim. Note: The Prim must have xform:orient in transform stack in order to interpolate rotations""" ) { token node:type = "omni.graph.nodes.MoveToTarget" int node:typeVersion = 1 # 10 attributes custom uint inputs:execIn ( docs="""The input execution""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom rel inputs:sourcePrim ( docs="""The source prim to be transformed""" ) custom string inputs:sourcePrimPath ( docs="""The source prim to be transformed, used when 'useSourcePath' is true""" ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom uint inputs:stop ( docs="""Stops the maneuver""" ) custom rel inputs:targetPrim ( docs="""The destination prim. The target's translation, rotation, and scale will be matched by the sourcePrim""" ) custom string inputs:targetPrimPath ( docs="""The destination prim. The target's translation, rotation, and scale will be matched by the sourcePrim, used when 'useTargetPath' is true""" ) custom bool inputs:useSourcePath = false ( docs="""When true, the 'sourcePrimPath' attribute is used, otherwise it will read the connection at the 'sourcePrim' attribute""" ) custom bool inputs:useTargetPath = false ( docs="""When true, the 'targetPrimPath' attribute is used, otherwise it will read the connection at the 'targetPrim' attribute""" ) # 1 attribute custom uint outputs:finished ( docs="""The output execution, sent one the maneuver is completed""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantBoolTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantBool.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantBool" ( docs="""Holds a boolean value""" ) { token node:type = "omni.graph.nodes.ConstantBool" int node:typeVersion = 1 # 1 attribute custom bool inputs:value = false ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantHalfTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantHalf.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantHalf" ( docs="""Holds a 16-bit floating point value""" ) { token node:type = "omni.graph.nodes.ConstantHalf" int node:typeVersion = 1 # 1 attribute custom half inputs:value = 0.0 ( docs="""The constant value""" ) } }