file_path
stringlengths
32
153
content
stringlengths
0
3.14M
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""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCeilTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCeil.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_Ceil" ( docs="""Computes the ceil of the given decimal number a, which is the smallest integral value greater than a""" ) { token node:type = "omni.graph.nodes.Ceil" int node:typeVersion = 1 # 1 attribute custom token inputs:a ( docs="""The decimal number""" ) # 1 attribute custom token outputs:result ( docs="""The ceil of the input a""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMagnitudeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMagnitude.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_Magnitude" ( docs="""Compute the magnitude of a vector, array of vectors, or a scalar If a scalar is passed in, the absolute value will be returned If an array of vectors are passed in, the output will be an array of corresponding magnitudes""" ) { token node:type = "omni.graph.nodes.Magnitude" int node:typeVersion = 1 # 1 attribute custom token inputs:input ( docs="""The vector(s) or scalar to take the magnitude of""" ) # 1 attribute custom token outputs:magnitude ( docs="""The resulting magnitude(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantFloat3Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantFloat3.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_ConstantFloat3" ( docs="""Holds a 3-component float constant.""" ) { token node:type = "omni.graph.nodes.ConstantFloat3" int node:typeVersion = 1 # 1 attribute custom float3 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/OgnRotateToTargetTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRotateToTarget.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_RotateToTarget" ( docs="""This node smoothly rotates a prim object to match a target prim object given a speed and easing factor. At the end of the maneuver, the source prim will have the rotation as the target prim. Note: The Prim must have xform:orient in transform stack in order to interpolate rotations""" ) { token node:type = "omni.graph.nodes.RotateToTarget" 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 rotation will be matched by the sourcePrim""" ) custom string inputs:targetPrimPath ( docs="""The destination prim. The target's rotation 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/OgnInterpolatorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnInterpolator.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_Interpolator" ( docs="""Time sample interpolator""" ) { token node:type = "omni.graph.nodes.Interpolator" int node:typeVersion = 1 # 3 attributes custom float[] inputs:knots = [] ( docs="""Array of knots on the time sample curve""" ) custom float inputs:param = 0.0 ( docs="""Time sample interpolation point""" ) custom float[] inputs:values = [] ( docs="""Array of time sample values""" ) # 1 attribute custom float outputs:value ( docs="""Value in the time samples, interpolated at the given parameter location""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantDouble2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantDouble2.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_ConstantDouble2" ( docs="""Holds a 2-component double constant.""" ) { token node:type = "omni.graph.nodes.ConstantDouble2" int node:typeVersion = 1 # 1 attribute custom double2 inputs:value = (0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetAttrNamesTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetAttrNames.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_GetAttributeNames" ( docs="""Retrieves the names of all of the attributes contained in the input bundle, optionally sorted.""" ) { token node:type = "omni.graph.nodes.GetAttributeNames" int node:typeVersion = 1 # 2 attributes custom rel inputs:data ( docs="""Collection of attributes from which to extract names""" ) custom bool inputs:sort = true ( docs="""If true, the names will be output in sorted order (default, for consistency). If false, the order is not be guaranteed to be consistent between systems or over time, so do not rely on the order downstream in this case.""" ) # 1 attribute custom token[] outputs:output ( docs="""Names of all of the attributes contained in the input bundle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnReadSettingTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnReadSetting.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_ReadSetting" ( docs="""Node that reads a value from a kit application setting""" ) { token node:type = "omni.graph.nodes.ReadSetting" int node:typeVersion = 1 # 1 attribute custom string inputs:settingPath = "" ( docs="""The path of the setting""" ) # 1 attribute custom token outputs:value ( docs="""The value of the setting that is returned""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetPrimDirectionVectorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetPrimDirectionVector.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_GetPrimDirectionVector" ( docs="""Given a prim, find its direction vectors (up vector, forward vector, right vector, etc.)""" ) { token node:type = "omni.graph.nodes.GetPrimDirectionVector" int node:typeVersion = 1 # 3 attributes custom rel inputs:prim ( docs="""The connection to the input prim - this attribute is used when 'usePath' is false""" ) custom token inputs:primPath = "" ( docs="""The path of the input prim - this attribute is used when 'usePath' is true""" ) custom bool inputs:usePath = true ( docs="""When true, it will use the 'primPath' attribute as the path to the prim, otherwise it will read the connection at the 'prim' attribute""" ) # 6 attributes custom double3 outputs:backwardVector ( docs="""The backward vector of the prim""" ) custom double3 outputs:downVector ( docs="""The down vector of the prim""" ) custom double3 outputs:forwardVector ( docs="""The forward vector of the prim""" ) custom double3 outputs:leftVector ( docs="""The left vector of the prim""" ) custom double3 outputs:rightVector ( docs="""The right vector of the prim""" ) custom double3 outputs:upVector ( docs="""The up vector of the prim""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSetMatrix4TranslationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSetMatrix4Translation.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_SetMatrix4Translation" ( docs="""Sets the translation of the given matrix4d value which represents a linear transformation. Does not modify the orientation (row 0-2) of the matrix.""" ) { token node:type = "omni.graph.nodes.SetMatrix4Translation" int node:typeVersion = 1 # 2 attributes custom token inputs:matrix ( docs="""The matrix to be modified""" ) custom token inputs:translation ( docs="""The translation that the matrix will apply""" ) # 1 attribute custom token outputs:matrix ( docs="""The updated matrix""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayRotateTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayRotate.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_ArrayRotate" ( docs="""Shifts the elements of an array by the specified number of steps to the right and wraps elements from one end to the other. A negative step will shift to the left.""" ) { token node:type = "omni.graph.nodes.ArrayRotate" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom int inputs:steps = 0 ( docs="""The number of steps to shift, negative means shift left instead of right""" ) # 1 attribute custom token outputs:array ( docs="""The modified array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetMatrix4QuaternionTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetMatrix4Quaternion.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_GetMatrix4Quaternion" ( docs="""Gets the rotation of the given matrix4d value which represents a linear transformation. Returns a quaternion""" ) { token node:type = "omni.graph.nodes.GetMatrix4Quaternion" int node:typeVersion = 1 # 1 attribute custom token inputs:matrix ( docs="""The transformation matrix""" ) # 1 attribute custom token outputs:quaternion ( docs="""quaternion representing the orientation of the matrix transformation""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRemoveAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRemoveAttr.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_RemoveAttribute" ( docs="""Copies all attributes from an input bundle to the output bundle, except for any specified to be removed.""" ) { token node:type = "omni.graph.nodes.RemoveAttribute" int node:typeVersion = 1 # 2 attributes custom token inputs:attrNamesToRemove = "" ( docs="""Comma or space separated text, listing the names of attributes *not* to be copied to the output bundle""" ) custom rel inputs:data ( docs="""Collection of attributes to be partially copied to the output""" ) # 1 attribute def Output "outputs_data" ( docs="""Final bundle of attributes, with the attributes specified by attrNamesToRemove omitted""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantDoubleTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantDouble.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_ConstantDouble" ( docs="""Holds a 64 bit floating point value""" ) { token node:type = "omni.graph.nodes.ConstantDouble" int node:typeVersion = 1 # 1 attribute custom double inputs:value = 0.0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMakeVector2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMakeVector2.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_MakeVector2" ( docs="""Merge 2 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.MakeVector2" int node:typeVersion = 1 # 2 attributes custom token inputs:x ( docs="""The first component of the vector""" ) custom token inputs:y ( docs="""The second component of the vector""" ) # 1 attribute custom token outputs:tuple ( docs="""Output vector(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantStringTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantString.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_ConstantString" ( docs="""Holds a string constant value""" ) { token node:type = "omni.graph.nodes.ConstantString" 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/OgnWritePrimAttributeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnWritePrimAttribute.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_WritePrimAttribute" ( docs="""Given a path to a prim on the current USD stage and the name of an attribute on that prim, sets the value of that attribute. Does nothing if the given Prim or attribute can not be found. If the attribute is found but it is not a compatible type, an error will be issued.""" ) { token node:type = "omni.graph.nodes.WritePrimAttribute" int node:typeVersion = 1 # 7 attributes custom uint inputs:execIn ( docs="""Input execution state""" ) custom token inputs:name = "" ( docs="""The name of the attribute to set on the specified prim""" ) custom rel inputs:prim ( docs="""The prim to be modified when 'usePath' is false""" ) custom token inputs:primPath = "" ( docs="""The path of the prim to be modified when 'usePath' is true""" ) custom bool inputs:usdWriteBack = true ( docs="""Whether or not the value should be written back to USD, or kept a Fabric only value""" ) custom bool inputs:usePath = false ( 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""" ) custom token inputs:value = "any" ( 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/OgnToUint64Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToUint64.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_ToUint64" ( docs="""Converts the given input to a 64 bit unsigned integer of the same shape. Negative integers are converted by adding them to 2**64, decimal numbers are truncated.""" ) { token node:type = "omni.graph.nodes.ToUint64" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""The numeric value to convert to uint64""" ) # 1 attribute custom token outputs:converted ( docs="""Converted output""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnInterpolateToTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnInterpolateTo.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_InterpolateTo" ( docs="""Function which iterpolates one step from a current value to a target value with a given speed. Vectors are interpolated component-wise. Interpolation can be applied to decimal types. The interpolation provides an eased approach to the target, adjust speed and exponent to tweak the curve. The formula is: result = current + (target - current) * (1 - clamp(0, speed * deltaSeconds, 1))^exp. For quaternions, the node performs a spherical linear interpolation (SLERP) with alpha = (1 - clamp(0, speed * deltaSeconds, 1))^exp""" ) { token node:type = "omni.graph.nodes.InterpolateTo" int node:typeVersion = 2 # 5 attributes custom token inputs:current ( docs="""The current value""" ) custom double inputs:deltaSeconds = 0.0 ( docs="""The step time for the interpolation (Seconds)""" ) 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 double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom token inputs:target ( docs="""The target value""" ) # 1 attribute custom token outputs:result ( docs="""The interpolated result""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayRemoveValueTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayRemoveValue.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_ArrayRemoveValue" ( docs="""Removes the first occurrence of the given value from an array. If removeAll is true, removes all occurrences""" ) { token node:type = "omni.graph.nodes.ArrayRemoveValue" int node:typeVersion = 1 # 3 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom bool inputs:removeAll = false ( docs="""If true, removes all occurences of the value.""" ) custom token inputs:value ( docs="""The value to be removed""" ) # 2 attributes custom token outputs:array ( docs="""The modified array""" ) custom bool outputs:found ( docs="""true if a value was removed, false otherwise""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnExtractAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnExtractAttr.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_ExtractAttribute" ( docs="""Copies a single attribute from an input bundle to an output attribute directly on the node if it exists in the input bundle and matches the type of the output attribute""" ) { token node:type = "omni.graph.nodes.ExtractAttribute" 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 from which the named attribute is to be extracted""" ) # 1 attribute custom token outputs:output = "any" ( docs="""The single attribute extracted from the input bundle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToStringTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToString.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_ToString" ( docs="""Converts the given input to a string equivalent.""" ) { token node:type = "omni.graph.nodes.ToString" int node:typeVersion = 1 # 1 attribute custom token inputs:value = "any" ( docs="""The value to be converted to a string. Numeric values are converted using C++'s std::ostringstream << operator. This can result in the values being converted to exponential form. E.g: 1.234e+06 Arrays of numeric values are converted to Python list syntax. E.g: [1.5, -0.03] A uchar value is converted to a single, unquoted character. An array of uchar values is converted to an unquoted string. Avoid zero values (i.e. null chars) in the array as the behavior is undefined and may vary over time. A single token is converted to its unquoted string equivalent. An array of tokens is converted to Python list syntax with each token enclosed in double quotes. E.g. ["first", "second"]""" ) # 1 attribute custom string outputs:converted ( docs="""Output string""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnEachZeroTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnEachZero.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_EachZero" ( docs="""Outputs a boolean, or array of booleans, indicating which input values are zero within a specified tolerance.""" ) { token node:type = "omni.graph.nodes.EachZero" 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 token outputs:result ( docs="""If 'value' is a scalar then 'result' will be a boolean set to true if 'value' is zero. If 'value' is non-scalar (array, tuple, matrix, etc) then 'result' will be an array of booleans, one for each element/component of the input. If those elements are themselves non-scalar (e.g. an array of vectors) they will be considered zero only if all of the sub-elements are zero. For example, if 'value' is [3, 0, 1] then 'result' will be [true, false, true] because the second element is zero. But if 'value' is [[3, 0, 1], [-5, 4, 17]] then 'result' will be [false, false] because neither of the two vectors is fully zero.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToFloatTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToFloat.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_ToFloat" ( docs="""Converts the given input to 32 bit float. The node will attempt to convert array and tuple inputs to floats of the same shape""" ) { token node:type = "omni.graph.nodes.ToFloat" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""The numeric value to convert to float""" ) # 1 attribute custom token outputs:converted ( docs="""Output float scaler or array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantColor3fTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantColor3f.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_ConstantColor3f" ( docs="""Holds a 3-component color constant, which is energy-linear RGB""" ) { token node:type = "omni.graph.nodes.ConstantColor3f" int node:typeVersion = 1 # 1 attribute custom color3f 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/OgnConstantUInt64Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantUInt64.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_ConstantUInt64" ( docs="""Holds a 64 bit signed integer value""" ) { token node:type = "omni.graph.nodes.ConstantUInt64" int node:typeVersion = 1 # 1 attribute custom uint64 inputs:value = 0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantPoint3dTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantPoint3d.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_ConstantPoint3d" ( docs="""Holds a 3-component double constant.""" ) { token node:type = "omni.graph.nodes.ConstantPoint3d" int node:typeVersion = 1 # 1 attribute custom point3d 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/OgnSelectIfTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSelectIf.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_SelectIf" ( docs="""Selects an output from the given inputs based on a boolean condition. If the condition is an array, and the inputs are arrays of equal length, and values will be selected from ifTrue, ifFalse depending on the bool at the same index. If one input is an array and the other is a scaler of the same base type, the scaler will be extended to the length of the other input.""" ) { token node:type = "omni.graph.nodes.SelectIf" int node:typeVersion = 1 # 3 attributes custom token inputs:condition ( docs="""The selection variable""" ) custom token inputs:ifFalse = "any" ( docs="""Value if condition is False""" ) custom token inputs:ifTrue = "any" ( docs="""Value if condition is True""" ) # 1 attribute custom token outputs:result = "any" ( docs="""The selected value from ifTrue and ifFalse""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetLookAtRotationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetLookAtRotation.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_GetLookAtRotation" ( docs="""Computes the rotation angles to align a forward direction vector to a direction vector formed by starting at 'start' and pointing at 'target'. The forward vector is the 'default' orientation of the asset being rotated, usually +X or +Z""" ) { token node:type = "omni.graph.nodes.GetLookAtRotation" int node:typeVersion = 1 # 3 attributes custom double3 inputs:forward = (0.0, 0.0, 1.0) ( docs="""The direction vector to be aligned with the look vector""" ) custom double3 inputs:start = (0.0, 0.0, 0.0) ( docs="""The location to look from""" ) custom double3 inputs:target = (0.0, 0.0, 0.0) ( docs="""The location to look at""" ) # 2 attributes custom quatd outputs:orientation ( docs="""The orientation quaternion equivalent to outputs:rotateXYZ""" ) custom double3 outputs:rotateXYZ ( docs="""The rotation vector [X/Pitch, Y/Yaw, Z/Roll]""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantTokenTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantToken.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_ConstantToken" ( docs="""Holds a token value, which is a 64-bit value representing an interned string""" ) { token node:type = "omni.graph.nodes.ConstantToken" int node:typeVersion = 1 # 1 attribute custom token inputs:value = "" ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayIndexTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayIndex.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_ArrayIndex" ( docs="""Copies an element of an input array into an output""" ) { token node:type = "omni.graph.nodes.ArrayIndex" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be indexed""" ) 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:value ( docs="""The value from the array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnTranslateToTargetTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnTranslateToTarget.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_TranslateToTarget" ( docs="""This node smoothly translates 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 same translation as the target prim""" ) { token node:type = "omni.graph.nodes.TranslateToTarget" 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 will be matched by the sourcePrim""" ) custom string inputs:targetPrimPath ( docs="""The destination prim. The target's translation 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/OgnDeformedPointsToHydraTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnDeformedPointsToHydra.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_DeformedPointsToHydra" ( docs="""Copy deformed points into rpresource and send to hydra""" ) { token node:type = "omni.graph.nodes.DeformedPointsToHydra" 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:sendToHydra = false ( docs="""send to hydra""" ) custom uint64 inputs:stream = 0 ( docs="""Pointer to the CUDA Stream""" ) custom bool inputs:verbose = false ( docs="""verbose printing""" ) # 1 attribute custom bool outputs:reload = false ( docs="""Force RpResource reload""" ) } }