Skip to content

Commit

Permalink
DYN-7207: Fix DefineData image of example file (#15407)
Browse files Browse the repository at this point in the history
  • Loading branch information
twastvedt authored Jul 26, 2024
1 parent 6b3be86 commit 884058b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/distrib/NodeHelpFiles/CoreNodeModels.DefineData.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The node has one input:
- The "**>**" input - Connect to an upstream node to validate the type of its data.
Additionally, the node offers three user controls:
- The **Auto-detect type** toggle - When toggled on, the node analyzes the incoming data, and if the data is of a supported type, the node sets the Type and List controls' values based on the type of the incoming data. The Type drop-down menu and the List toggle are disabled and will automatically update based on the input node.

When Auto-detect type is toggled off, you can specify a data type by using the Type menu and List toggle. If the incoming data does not match what you've specified, the node will enter a warning state with a null output.
- The **Type** drop-down menu - Sets the expected data type. When the control is enabled (**Auto-detect type** toggle is off), set a data type for validation. When the control is disabled (**Auto-detect type** toggle is on), the data type is set automatically based on incoming data. Data is valid if its type matches the shown type exactly or if its type is a child of the shown type (for example, if the Type drop-down is set to "Curve", objects of type "Rectangle", "Line", etc. are valid).
- The **List** toggle - When on, the node expects incoming data to be a single flat list containing items of a valid data type (see above). When off, the node expects a single item of a valid data type.
Expand All @@ -23,4 +23,4 @@ When set as an input ("Is Input" in the node's context menu), the node can optio

In the example below, the first group of "DefineData" nodes have the **Auto-detect type** toggle off. The node correctly validates the Number input provided while rejecting the String input. The second group contains a node with **Auto-detect type** toggled on. The node automatically adjusts the Type drop-down and the List toggle to match the input, in this case a list of integers.

![Define_Data](./CoreNodeModels.DefineData_img.jpg)
![Define_Data](./CoreNodeModels.DefineData_img.png)
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 884058b

Please sign in to comment.