diff --git a/.github/workflows/dynamoAllNet6.0_build.yml b/.github/workflows/dynamoAllNet6.0_build.yml index c1775c560a3..95cb739c774 100644 --- a/.github/workflows/dynamoAllNet6.0_build.yml +++ b/.github/workflows/dynamoAllNet6.0_build.yml @@ -36,7 +36,7 @@ jobs: if ("${{ github.event_name }}" -eq 'pull_request') { echo "ARTIFACT_NAME=DynamoSandbox-${{ github.event.pull_request.number }}" >> $env:GITHUB_ENV } else { - echo "ARTIFACT_NAME=DynamoSandbox-$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV + echo "ARTIFACT_NAME=DynamoSandbox-$(git -C ./Dynamo rev-parse --short HEAD)" >> $env:GITHUB_ENV } - name: Upload Artifact uses: actions/upload-artifact@v3 @@ -49,6 +49,6 @@ jobs: uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.DYNAMO_TESTS_TOKEN }} - repository: DynamoDS/TestCompleteTests + repository: DynamoDS/DynamoTestCompleteTests event-type: build-completed client-payload: '{"artifact_name": "${{ env.ARTIFACT_NAME }}", "run_id": "${{ github.run_id }}"}' diff --git a/doc/distrib/NodeHelpFiles/!=.dyn b/doc/distrib/NodeHelpFiles/!=.dyn new file mode 100644 index 00000000000..fb8b05511b8 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/!=.dyn @@ -0,0 +1,267 @@ +{ + "Uuid": "82cd00e7-0efc-4f47-846f-4d15cfc94dab", + "IsCustomNode": false, + "Description": "", + "Name": "!=", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "07b2176843434eba9614e4a2749fc3bf", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "47.7", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + }, + { + "Id": "4ddd09f3e073473bb61d7536a9cca3e4", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "12.6", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "Id": "07b2176843434eba9614e4a2749fc3bf", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "77331b9aa58242808c577087b95d7f2f", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 47.7 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "Id": "4ddd09f3e073473bb61d7536a9cca3e4", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "e4d39865cdf24421a2d3c144d6996231", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 12.6 + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 50.0, + "WatchHeight": 38.0, + "Id": "5f1f459ded4d457eae613cd76a6e0e81", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "dc7a8842d5114537896ef1734a4de5ab", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "f3d0a238283d4d69917f069f39836867", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "b344313d0942443a8ba732ed8a386369", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "1a43719ac47145518c505552643f05ba", + "Name": "x", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a152a8af792d427cb478b79ff8692ee6", + "Name": "y", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "2c021a4fe2ce4c438792e25bfc5eceec", + "Name": "bool", + "Description": "Result of check", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "!=@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Returns true if the two values are different\n\n!= (x: var[]..[], y: var[]..[]): var[]..[]" + } + ], + "Connectors": [ + { + "Start": "77331b9aa58242808c577087b95d7f2f", + "End": "1a43719ac47145518c505552643f05ba", + "Id": "4a0b8a5e046946f995dde968b4b668ec", + "IsHidden": "False" + }, + { + "Start": "e4d39865cdf24421a2d3c144d6996231", + "End": "a152a8af792d427cb478b79ff8692ee6", + "Id": "f9584de10fd04089ba1fb96ed41989a4", + "IsHidden": "False" + }, + { + "Start": "2c021a4fe2ce4c438792e25bfc5eceec", + "End": "dc7a8842d5114537896ef1734a4de5ab", + "Id": "376a9cbb822e4b18a80796bbd2300ff6", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "07b2176843434eba9614e4a2749fc3bf", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 99.800000000000068, + "Y": 169.8 + }, + { + "Id": "4ddd09f3e073473bb61d7536a9cca3e4", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 99.800000000000068, + "Y": 317.8 + }, + { + "Id": "5f1f459ded4d457eae613cd76a6e0e81", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 811.80000000000007, + "Y": 226.8 + }, + { + "Id": "b344313d0942443a8ba732ed8a386369", + "Name": "!=", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 547.80000000000007, + "Y": 226.8 + } + ], + "Annotations": [], + "X": 331.13225372525721, + "Y": 29.580206135945787, + "Zoom": 0.84036670197057128 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/!=.md b/doc/distrib/NodeHelpFiles/!=.md new file mode 100644 index 00000000000..bcc35d1b961 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/!=.md @@ -0,0 +1,8 @@ +## In Depth +The `!=` node is the Not Equal To operator. It takes two input values and returns True if the two values are not equal and False if the two values are equal. + +In the example below, a `!=` node is used to determine if the two input values are not equal. We use two number sliders to control the inputs to the `!=` operator. +___ +## Example File + +![!=](./!=_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/!=_img.jpg b/doc/distrib/NodeHelpFiles/!=_img.jpg new file mode 100644 index 00000000000..2c8fe5c82c5 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/!=_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/%.dyn b/doc/distrib/NodeHelpFiles/%.dyn new file mode 100644 index 00000000000..1a7b1e893b1 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/%.dyn @@ -0,0 +1,267 @@ +{ + "Uuid": "7925aa7f-bfec-4fcb-9b4c-4d6becf5e9e9", + "IsCustomNode": false, + "Description": "", + "Name": "%", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "8c7c2850668047dcab5faa617fccd17e", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "49", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + }, + { + "Id": "a9755cd6f14942cd953a4c759cb23844", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "5", + "MaximumValue": 10.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "Id": "8c7c2850668047dcab5faa617fccd17e", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "221e562e198e49cda0dd807f35a5510a", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 49.0 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 10.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "Id": "a9755cd6f14942cd953a4c759cb23844", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "a294bcb8c63e408e8c7fbb33eaf9f35a", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 5.0 + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 28.0, + "WatchHeight": 38.0, + "Id": "bf68868707d44bb2ae62e6e999c77cfb", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "890718983c804456ae80f1ecd3a4ffb9", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "2320e01e81264d41942e3c05b3dec8bc", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "d770e3b698ba4135b54da0c17917a4f6", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "0290426b73704b27845120fafdbfd8b2", + "Name": "x", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "35bc76101d7c41faac3961c5805f94a4", + "Name": "y", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "534a8afa95be4b5ebf754b46e25f01ed", + "Name": "number", + "Description": "Remainder of the x input after being divided by the y input", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "%@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Modulo: Finds the remainder of x/y\n\n% (x: var[]..[], y: var[]..[]): var[]..[]" + } + ], + "Connectors": [ + { + "Start": "221e562e198e49cda0dd807f35a5510a", + "End": "0290426b73704b27845120fafdbfd8b2", + "Id": "77c8fbdc75ab4638a89663629f63440c", + "IsHidden": "False" + }, + { + "Start": "a294bcb8c63e408e8c7fbb33eaf9f35a", + "End": "35bc76101d7c41faac3961c5805f94a4", + "Id": "b32f03d525c04cc3955d2b7468c3efc0", + "IsHidden": "False" + }, + { + "Start": "534a8afa95be4b5ebf754b46e25f01ed", + "End": "890718983c804456ae80f1ecd3a4ffb9", + "Id": "66ec2b72ae1d49fbbedee8abe43e07c6", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "8c7c2850668047dcab5faa617fccd17e", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 89.9544276457885, + "Y": 169.8 + }, + { + "Id": "a9755cd6f14942cd953a4c759cb23844", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 89.954427645788542, + "Y": 317.8 + }, + { + "Id": "bf68868707d44bb2ae62e6e999c77cfb", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 820.95442764578854, + "Y": 226.8 + }, + { + "Id": "d770e3b698ba4135b54da0c17917a4f6", + "Name": "%", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 537.95442764578854, + "Y": 227.48302493966213 + } + ], + "Annotations": [], + "X": 261.0023027440273, + "Y": 31.195826371404365, + "Zoom": 0.74129933883645294 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/%.md b/doc/distrib/NodeHelpFiles/%.md new file mode 100644 index 00000000000..2e0bacc8e4a --- /dev/null +++ b/doc/distrib/NodeHelpFiles/%.md @@ -0,0 +1,8 @@ +## In Depth +The `%` node is the modulo operator. It returns the remainder of the `x` input after it is divided by the `y` input. + +In the example below, a `%` node is used to return the remainder of x/y. We use two number sliders to control the inputs to the `%` operator. +___ +## Example File + +![%](./modulo_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/&&.dyn b/doc/distrib/NodeHelpFiles/&&.dyn new file mode 100644 index 00000000000..1d70f901fc4 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/&&.dyn @@ -0,0 +1,211 @@ +{ + "Uuid": "602c03b2-552a-4120-b62e-9e9438d5a481", + "IsCustomNode": false, + "Description": "", + "Name": "&&", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "e965f24253a74a2c8ed454e8d433def1", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "e30fc00e9f1f48c6b34c6247692a14e1", + "Name": "x", + "Description": "A boolean to check if true\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "d8ff640ee5b54066830f9eda2ac29980", + "Name": "y", + "Description": "Another boolean to check if true\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "9766432f7a344cd08325bfd8ef555e28", + "Name": "bool", + "Description": "Result of check", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "&&@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Logical AND operator\n\n&& (x: var[]..[], y: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "5b61bcb663014b3d9802d7da7519959f", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "0bc82f4252f94ab8b470ed894f33e4c2", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "7e97954e61da46f9b3a10695a659d045", + "Name": "", + "Description": "Value of expression at line 2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "[true,true,false,false];\n[true,false,true,false];" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 200.0, + "WatchHeight": 200.0, + "Id": "9083902fd0af4988a1d9c5c29a144b34", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "1c25636ccc9345f2af2001565f28d4e3", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "0197613771a842208149f15a792514bc", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + } + ], + "Connectors": [ + { + "Start": "9766432f7a344cd08325bfd8ef555e28", + "End": "1c25636ccc9345f2af2001565f28d4e3", + "Id": "81c9e682d4044206b0bbb042f701a429", + "IsHidden": "False" + }, + { + "Start": "0bc82f4252f94ab8b470ed894f33e4c2", + "End": "e30fc00e9f1f48c6b34c6247692a14e1", + "Id": "527d1c2873304abba8b46025f2aec41f", + "IsHidden": "False" + }, + { + "Start": "7e97954e61da46f9b3a10695a659d045", + "End": "d8ff640ee5b54066830f9eda2ac29980", + "Id": "438bdb3f99074135adfe35ef8a885d3d", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "e965f24253a74a2c8ed454e8d433def1", + "Name": "&&", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 343.96500402252616, + "Y": 166.19857385460782 + }, + { + "Id": "5b61bcb663014b3d9802d7da7519959f", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 9.97633230969143, + "Y": 188.9567995123341 + }, + { + "Id": "9083902fd0af4988a1d9c5c29a144b34", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 569.319469725056, + "Y": 167.65600302401981 + } + ], + "Annotations": [], + "X": 221.97617375972641, + "Y": -61.925951001529342, + "Zoom": 1.0616034524695668 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/&&.md b/doc/distrib/NodeHelpFiles/&&.md new file mode 100644 index 00000000000..d1555652440 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/&&.md @@ -0,0 +1,8 @@ +## In Depth +`&&` accepts two Boolean values, or lists of Boolean values, and determines whether both values are True. In all other cases, it returns False. + +In the example below, we start with two lists of Boolean values. Together, these lists represent the 4 possible combinations of True and False values. `&&` returns True only for the first pair of values, which are both True. The others are either combinations of True and False, or False and False, so `&&` returns False. +___ +## Example File + +![&&](./&&_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/&&_img.jpg b/doc/distrib/NodeHelpFiles/&&_img.jpg new file mode 100644 index 00000000000..fb94681a2e7 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/&&_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/-.dyn b/doc/distrib/NodeHelpFiles/-.dyn new file mode 100644 index 00000000000..fda4cb0e1c3 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/-.dyn @@ -0,0 +1,267 @@ +{ + "Uuid": "a8d6a28e-c57a-44a8-9bb4-0bf447b5ecbc", + "IsCustomNode": false, + "Description": "", + "Name": "-", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "806cd5c76e714d75aea54bdc72ccda0c", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "47.7", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + }, + { + "Id": "c65518244b0b4d31a134cd81b9c3930d", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "12.6", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "2cf27987cf884c8c84ce947439e0487a", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "2eede8a05eb6456682abf5325f82bcaf", + "Name": "x", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "4394823a2cb743c0a9ca2d4fa0b09458", + "Name": "y", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "61b6dc56eec443f9bf5f3eecfa18e85e", + "Name": "number", + "Description": "Result of the y input subtracted from the x input", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "-@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Returns subtraction of x minus y\n\n- (x: var[]..[], y: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "Id": "806cd5c76e714d75aea54bdc72ccda0c", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "2d5a21c63052411696e84c9fddba3b08", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 47.7 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 0.1, + "Id": "c65518244b0b4d31a134cd81b9c3930d", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "5e834097b390409880d6b1fc481e1557", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 12.6 + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 50.0, + "WatchHeight": 38.0, + "Id": "261fe948d36244a8a34c9947be55493c", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "21b73ee36a35401d9df3d8460237b53f", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "1e07c5ffa295431bb51f3867f034e178", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + } + ], + "Connectors": [ + { + "Start": "61b6dc56eec443f9bf5f3eecfa18e85e", + "End": "21b73ee36a35401d9df3d8460237b53f", + "Id": "ece23071c7104e79b6af67c8af4331bc", + "IsHidden": "False" + }, + { + "Start": "2d5a21c63052411696e84c9fddba3b08", + "End": "2eede8a05eb6456682abf5325f82bcaf", + "Id": "1eb61c3cd433414cb5d208ceb4e149e5", + "IsHidden": "False" + }, + { + "Start": "5e834097b390409880d6b1fc481e1557", + "End": "4394823a2cb743c0a9ca2d4fa0b09458", + "Id": "2b96b34bb55541b5bd577e4af6426e66", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "2cf27987cf884c8c84ce947439e0487a", + "Name": "-", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 538.30000000000007, + "Y": 226.8 + }, + { + "Id": "806cd5c76e714d75aea54bdc72ccda0c", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 90.300000000000068, + "Y": 169.8 + }, + { + "Id": "c65518244b0b4d31a134cd81b9c3930d", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 90.300000000000068, + "Y": 317.8 + }, + { + "Id": "261fe948d36244a8a34c9947be55493c", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 821.30000000000007, + "Y": 226.8 + } + ], + "Annotations": [], + "X": -61.668181818181893, + "Y": 29.619696969696975, + "Zoom": 1.0151515151515151 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/-.md b/doc/distrib/NodeHelpFiles/-.md new file mode 100644 index 00000000000..14c6df10b49 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/-.md @@ -0,0 +1,8 @@ +## In Depth +The node `-` is the subtraction operator. It returns the result of the `y` input subtracted from the `x` input. + +In the example below, a - node is used to subtract the `y` input from the `x` input. We use two number sliders to control the inputs to the `-` operator. +___ +## Example File + +![-](./-_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/-_img.jpg b/doc/distrib/NodeHelpFiles/-_img.jpg new file mode 100644 index 00000000000..dd6f9f0b58b Binary files /dev/null and b/doc/distrib/NodeHelpFiles/-_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/==.dyn b/doc/distrib/NodeHelpFiles/==.dyn new file mode 100644 index 00000000000..247806666fd --- /dev/null +++ b/doc/distrib/NodeHelpFiles/==.dyn @@ -0,0 +1,267 @@ +{ + "Uuid": "e6d3fa34-0fee-4afb-87c7-2516abe6eab7", + "IsCustomNode": false, + "Description": "", + "Name": "==", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "429b0cb102d5456480ed9fa180bc467b", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "54", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + }, + { + "Id": "37e09909327e4a2aa14189a3c31bb1cc", + "Name": "Number Slider", + "Type": "number", + "Type2": "number", + "Value": "5", + "MaximumValue": 10.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "NumberType": "Double", + "Description": "Produces numeric values", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 100.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "Id": "429b0cb102d5456480ed9fa180bc467b", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "2d47c08c4720476a81f0e7d87b0db4a8", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 54.0 + }, + { + "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels", + "NumberType": "Double", + "MaximumValue": 10.0, + "MinimumValue": 0.0, + "StepValue": 1.0, + "Id": "37e09909327e4a2aa14189a3c31bb1cc", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "80821866373144249cd406d398476ddf", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Produces numeric values", + "InputValue": 5.0 + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 58.0, + "WatchHeight": 38.0, + "Id": "48824c79f4e8480ca33b2ed833a0ea6f", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "e65ae59598a3404e9f543890b7eead82", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "426299dc1e2d416ebbe77a0a781bddab", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "6e91af06ee844d70a4d8ca58070ec1d8", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "5dd6cfe7a51d46c693ba4dbe03db464f", + "Name": "x", + "Description": "Basic type object to compare (e.g. bool, int, double, string, etc.)\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "3b7b760b6ccd45068ddb02e462d5e836", + "Name": "y", + "Description": "Basic type object to compare (e.g. bool, int, double, string, etc.)\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "cee6d7d6015d430bb9959e3fbd524f04", + "Name": "bool", + "Description": "Result of equality check", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "==@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Compares if x and y are equal\n\n== (x: var[]..[], y: var[]..[]): var[]..[]" + } + ], + "Connectors": [ + { + "Start": "2d47c08c4720476a81f0e7d87b0db4a8", + "End": "5dd6cfe7a51d46c693ba4dbe03db464f", + "Id": "a720589d09bb457c951a4201e9c00555", + "IsHidden": "False" + }, + { + "Start": "80821866373144249cd406d398476ddf", + "End": "3b7b760b6ccd45068ddb02e462d5e836", + "Id": "c6866368e8f24008aa1a79ab18c5bd46", + "IsHidden": "False" + }, + { + "Start": "cee6d7d6015d430bb9959e3fbd524f04", + "End": "e65ae59598a3404e9f543890b7eead82", + "Id": "6c8488aa0bc64efb8e3cd321c4f5eeb8", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "429b0cb102d5456480ed9fa180bc467b", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 99.454427645788542, + "Y": 169.8 + }, + { + "Id": "37e09909327e4a2aa14189a3c31bb1cc", + "Name": "Number Slider", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 99.454427645788542, + "Y": 317.8 + }, + { + "Id": "48824c79f4e8480ca33b2ed833a0ea6f", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 811.45442764578854, + "Y": 226.8 + }, + { + "Id": "6e91af06ee844d70a4d8ca58070ec1d8", + "Name": "==", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 547.45442764578854, + "Y": 226.8 + } + ], + "Annotations": [], + "X": -115.95260161005331, + "Y": -107.13506493506492, + "Zoom": 1.4675324675324675 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/==.md b/doc/distrib/NodeHelpFiles/==.md new file mode 100644 index 00000000000..033ff585307 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/==.md @@ -0,0 +1,8 @@ +## In Depth +The `==` node is the Equal To operator. If the `x` input is equal to the `y` input, it returns True. If the two values are not equal, it returns False. This node can be used to compare both numbers and non-numbers, for example, strings, Revit objects, geometry, etc. + +In the example below, the `==` node is used to determine if the x and y inputs are equal. We use two number sliders to control the inputs to the `==` operator. +___ +## Example File + +![==](./==_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/==_img.jpg b/doc/distrib/NodeHelpFiles/==_img.jpg new file mode 100644 index 00000000000..3e871320bc6 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/==_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList.dyn b/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList.dyn new file mode 100644 index 00000000000..4161221f4ed --- /dev/null +++ b/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList.dyn @@ -0,0 +1,194 @@ +{ + "Uuid": "e5e49851-5c96-4926-a9ea-a2aeba05dc13", + "IsCustomNode": false, + "Description": "", + "Name": "DSCore.Math.RandomList", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels", + "NumberType": "Double", + "Id": "11a8f159cc4141629db4a1e70d860258", + "NodeType": "NumberInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "cf38608bc23d4ac99b2e5fa9e21c6280", + "Name": "", + "Description": "Double", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a number", + "InputValue": 350.0 + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "d345c472860644e58ded6052e6fe9500", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "f0382b1db51647ef8402e0da5463d3d6", + "Name": "amount", + "Description": "Amount of random numbers the result list will contain.\n\nint", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "ff287ba222954652b917d8985e0c7a57", + "Name": "number", + "Description": "List of random numbers between 0 and 1.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.Math.RandomList@int", + "Replication": "Auto", + "Description": "Produces a list containing the given amount of random doubles in the range of [0, 1).\n\nMath.RandomList (amount: int): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 234.0, + "WatchHeight": 244.0, + "Id": "61dd300db9884ef4bf30f821791dc3be", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "216ce60c14ae4285ba14d0351fd4b33c", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "63b3076e4a4641f6b98010ee3ea92142", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + } + ], + "Connectors": [ + { + "Start": "cf38608bc23d4ac99b2e5fa9e21c6280", + "End": "f0382b1db51647ef8402e0da5463d3d6", + "Id": "d5814ad03cba494ca3a29fb2325873e8", + "IsHidden": "False" + }, + { + "Start": "ff287ba222954652b917d8985e0c7a57", + "End": "216ce60c14ae4285ba14d0351fd4b33c", + "Id": "4525ae071aba411bbc57e6aff776df5e", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.18", + "Data": {} + }, + { + "ExtensionGuid": "DFBD9CC0-DB40-457A-939E-8C8555555A9D", + "Name": "Generative Design", + "Version": "1.2", + "Data": {} + } + ], + "Author": "", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "11a8f159cc4141629db4a1e70d860258", + "Name": "Number", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 617.0, + "Y": 439.0 + }, + { + "Id": "d345c472860644e58ded6052e6fe9500", + "Name": "Math.RandomList", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 845.0, + "Y": 437.0 + }, + { + "Id": "61dd300db9884ef4bf30f821791dc3be", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1151.0, + "Y": 436.0 + } + ], + "Annotations": [], + "X": -346.15758885693833, + "Y": -170.98680023763819, + "Zoom": 0.96546970479948491 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList.md b/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList.md new file mode 100644 index 00000000000..68749aa50cd --- /dev/null +++ b/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList.md @@ -0,0 +1,8 @@ +## In Depth +`Math.RandomList (amount)` produces the given amount of random numbers between 0 and 1. This node is commonly paired with a `Math.RemapRange` node to recreate the list within a new range of numbers while preserving the distribution ratio. + +In the example below, an ‘amount’ input of 350 is used to generate 350 random numbers between 0 and 1. +___ +## Example File + +![Math.RandomList](./DSCore.Math.RandomList_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList_img.jpg b/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList_img.jpg new file mode 100644 index 00000000000..27c653b4d3e Binary files /dev/null and b/doc/distrib/NodeHelpFiles/DSCore.Math.RandomList_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.dyn b/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.dyn index 053ab03142c..060c3ebc465 100644 --- a/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.dyn +++ b/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.dyn @@ -1,36 +1,22 @@ { - "Uuid": "93d7251f-6ed2-46b8-a188-00a0d7d9d6ae", + "Uuid": "e5e49851-5c96-4926-a9ea-a2aeba05dc13", "IsCustomNode": false, "Description": "", - "Name": "DSCore.Math.Xor_img", + "Name": "DSCore.Math.Xor", "ElementResolver": { - "ResolutionMap": { - "Math": { - "Key": "DSCore.Math", - "Value": "DSCoreNodes.dll" - }, - "Color": { - "Key": "DSCore.Color", - "Value": "DSCoreNodes.dll" - }, - "UV": { - "Key": "Autodesk.DesignScript.Geometry.UV", - "Value": "ProtoGeometry.dll" - } - } + "ResolutionMap": {} }, "Inputs": [], "Outputs": [], "Nodes": [ { "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "bd832111c6cd4794aa0c30e8ddc7f3fe", "NodeType": "CodeBlockNode", - "Code": "[true,true,false,false];\n[true,false,true,false];", - "Id": "7dec0125993c40328f6573129e9900b6", "Inputs": [], "Outputs": [ { - "Id": "ed28b14ff5924d61aa729fbf9d941f5c", + "Id": "de3b4d553f7743b5af1e88323f41d3e4", "Name": "", "Description": "Value of expression at line 1", "UsingDefaultValue": false, @@ -39,7 +25,7 @@ "KeepListStructure": false }, { - "Id": "fce9cd5d42634e6a92ed52989025502e", + "Id": "a1254442888149e6bafee2e25c2cefeb", "Name": "", "Description": "Value of expression at line 2", "UsingDefaultValue": false, @@ -49,15 +35,18 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Allows for DesignScript code to be authored directly", + "Code": "[true,true,false,false];\n[true,false,true,false];" }, { "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 185.0, + "WatchHeight": 144.0, + "Id": "cb26e45b6bbd451f918556726792567b", "NodeType": "ExtensionNode", - "Id": "9d8114c4259448999d5f78cd76073001", "Inputs": [ { - "Id": "876c55c422484193a1f46cc8d2874dc9", + "Id": "1805946c482f4fd995789d99c641f496", "Name": "", "Description": "Node to show output from", "UsingDefaultValue": false, @@ -68,7 +57,7 @@ ], "Outputs": [ { - "Id": "8e8b1ce181404464986af9c8a78a379e", + "Id": "e5c0065d51ad4ccd953978faff42f39d", "Name": "", "Description": "Node output", "UsingDefaultValue": false, @@ -82,11 +71,13 @@ }, { "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 196.0, + "WatchHeight": 149.0, + "Id": "4ffd751e0246417cb356eef1e746b5d4", "NodeType": "ExtensionNode", - "Id": "da510558067d40db97a64a36542ba65c", "Inputs": [ { - "Id": "4589d29e7dcc45dc8f58e7b61eed0280", + "Id": "39877ea3e61f4097ad68ffedb534e14f", "Name": "", "Description": "Node to show output from", "UsingDefaultValue": false, @@ -97,7 +88,7 @@ ], "Outputs": [ { - "Id": "e03da80c685e45eeafd3815859eee25a", + "Id": "63820c49bc904cac8a2d4d81ae414009", "Name": "", "Description": "Node output", "UsingDefaultValue": false, @@ -111,12 +102,11 @@ }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "0a6cc543c48743679f10299b180f915e", "NodeType": "FunctionNode", - "FunctionSignature": "DSCore.Math.Xor@bool,bool", - "Id": "2e478955cc7c4faaaf78d22ba4babe77", "Inputs": [ { - "Id": "3c29535b889a491f9178835cae6559c4", + "Id": "f43ab0eb13f24a9b81206e3904eab564", "Name": "bool", "Description": "A boolean\n\nbool", "UsingDefaultValue": false, @@ -125,7 +115,7 @@ "KeepListStructure": false }, { - "Id": "c0bd3eae007c4ee297133459244d8fb0", + "Id": "bb1915e2b49c4421a1bf4402175831b1", "Name": "otherBool", "Description": "Other boolean\n\nbool", "UsingDefaultValue": false, @@ -136,7 +126,7 @@ ], "Outputs": [ { - "Id": "03f5ae240e03421bb9d0f2dddcefd04a", + "Id": "68037cc3271e42f790ba70d372910237", "Name": "bool", "Description": "Boolean result", "UsingDefaultValue": false, @@ -145,16 +135,19 @@ "KeepListStructure": false } ], + "FunctionSignature": "DSCore.Math.Xor@bool,bool", "Replication": "Auto", "Description": "Boolean XOR: Returns true if and only if exactly one of the inputs is true.\n\nMath.Xor (bool: bool, otherBool: bool): bool" }, { "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 183.0, + "WatchHeight": 138.0, + "Id": "ab7551f353a84e51a08b12394b5cd59f", "NodeType": "ExtensionNode", - "Id": "e441668ae2424f6db09393c9596bf47e", "Inputs": [ { - "Id": "45598fcab0644534bdeda16bf9d74c68", + "Id": "f058b844a46d4817b5eca1dca2df74c4", "Name": "", "Description": "Node to show output from", "UsingDefaultValue": false, @@ -165,7 +158,7 @@ ], "Outputs": [ { - "Id": "df277683e8904a1387c01d042c6f20c2", + "Id": "2b5f39a57f8745cfa6d0de0a9bc996d6", "Name": "", "Description": "Node output", "UsingDefaultValue": false, @@ -180,33 +173,33 @@ ], "Connectors": [ { - "Start": "ed28b14ff5924d61aa729fbf9d941f5c", - "End": "876c55c422484193a1f46cc8d2874dc9", - "Id": "6bfa6df57299419e899cc3450cc562f4", + "Start": "de3b4d553f7743b5af1e88323f41d3e4", + "End": "1805946c482f4fd995789d99c641f496", + "Id": "4c664407d6b647619d6ad29dfdf8b5ce", "IsHidden": "False" }, { - "Start": "fce9cd5d42634e6a92ed52989025502e", - "End": "4589d29e7dcc45dc8f58e7b61eed0280", - "Id": "333e5597832042c0b35782681b837d90", + "Start": "a1254442888149e6bafee2e25c2cefeb", + "End": "39877ea3e61f4097ad68ffedb534e14f", + "Id": "9003efd1045e43f9ac6c3abf9626a8d5", "IsHidden": "False" }, { - "Start": "8e8b1ce181404464986af9c8a78a379e", - "End": "3c29535b889a491f9178835cae6559c4", - "Id": "0b4e30d99db44b2cb280dad6a6a5a032", + "Start": "e5c0065d51ad4ccd953978faff42f39d", + "End": "f43ab0eb13f24a9b81206e3904eab564", + "Id": "94916e982ef34aefa8bbf06edd1fae3e", "IsHidden": "False" }, { - "Start": "e03da80c685e45eeafd3815859eee25a", - "End": "c0bd3eae007c4ee297133459244d8fb0", - "Id": "e5e9592ec1a04470aa84bdb46ec0e751", + "Start": "63820c49bc904cac8a2d4d81ae414009", + "End": "bb1915e2b49c4421a1bf4402175831b1", + "Id": "5cc0191822af4c6f9a4db16c469f6fd2", "IsHidden": "False" }, { - "Start": "03f5ae240e03421bb9d0f2dddcefd04a", - "End": "45598fcab0644534bdeda16bf9d74c68", - "Id": "4765ec9f8e2a429f8a04902bfe03c467", + "Start": "68037cc3271e42f790ba70d372910237", + "End": "f058b844a46d4817b5eca1dca2df74c4", + "Id": "8277cfe0999b42568934356b53f801e0", "IsHidden": "False" } ], @@ -218,7 +211,13 @@ { "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", "Name": "Properties", - "Version": "2.17", + "Version": "2.18", + "Data": {} + }, + { + "ExtensionGuid": "DFBD9CC0-DB40-457A-939E-8C8555555A9D", + "Name": "Generative Design", + "Version": "1.2", "Data": {} } ], @@ -235,78 +234,78 @@ "ScaleFactor": 1.0, "HasRunWithoutCrash": true, "IsVisibleInDynamoLibrary": true, - "Version": "2.17.0.3255", + "Version": "2.19.0.5742", "RunType": "Manual", "RunPeriod": "1000" }, "Camera": { "Name": "_Background Preview", - "EyeX": -5.22369384765625, - "EyeY": 13.961121559143066, - "EyeZ": 14.827668190002441, - "LookX": 12.657733917236328, - "LookY": -14.124775886535645, - "LookZ": -24.96122932434082, - "UpX": 0.11247330158948898, - "UpY": 0.96858382225036621, - "UpZ": -0.2218000739812851 + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 }, "ConnectorPins": [], "NodeViews": [ { + "Id": "bd832111c6cd4794aa0c30e8ddc7f3fe", "Name": "Code Block", - "ShowGeometry": true, - "Id": "7dec0125993c40328f6573129e9900b6", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 3878.0, - "Y": 4348.0 + "ShowGeometry": true, + "X": 1279.2105394683224, + "Y": 1524.8453497624644 }, { + "Id": "cb26e45b6bbd451f918556726792567b", "Name": "Watch", - "ShowGeometry": true, - "Id": "9d8114c4259448999d5f78cd76073001", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 4341.3015512946731, - "Y": 4196.3386212170171 + "ShowGeometry": true, + "X": 1658.3192927839723, + "Y": 1317.9772639976543 }, { + "Id": "4ffd751e0246417cb356eef1e746b5d4", "Name": "Watch", - "ShowGeometry": true, - "Id": "da510558067d40db97a64a36542ba65c", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 4330.8300811621293, - "Y": 4442.0340864360214 + "ShowGeometry": true, + "X": 1654.7649161261475, + "Y": 1562.9834532107402 }, { + "Id": "0a6cc543c48743679f10299b180f915e", "Name": "Math.Xor", - "ShowGeometry": true, - "Id": "2e478955cc7c4faaaf78d22ba4babe77", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 4780.2973074414776, - "Y": 4333.7184696111926 + "ShowGeometry": true, + "X": 2028.2105394683224, + "Y": 1514.5630697412687 }, { + "Id": "ab7551f353a84e51a08b12394b5cd59f", "Name": "Watch", - "ShowGeometry": true, - "Id": "e441668ae2424f6db09393c9596bf47e", "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 5104.6377013946467, - "Y": 4332.685538420259 + "ShowGeometry": true, + "X": 2342.2105394683222, + "Y": 1516.1903497624642 } ], "Annotations": [], - "X": -3348.7161654131864, - "Y": -2668.4431068783779, - "Zoom": 0.77449495863987361 + "X": -760.10775327275678, + "Y": -675.66193975289093, + "Zoom": 0.61452238519180757 } } \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.md b/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.md index 2e5b5a38768..988cf2b05f6 100644 --- a/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.md +++ b/doc/distrib/NodeHelpFiles/DSCore.Math.Xor.md @@ -1,7 +1,8 @@ ## In Depth -Xor will accept two boolean values, or two lists of boolean values and determines whether the values are the same or different. Xor compares two values and returns 'true' if exactly one of the inputs is 'true'. If both values are 'true' or if both values are 'false', Xor will return 'false'. In the example below, we start with two lists of boolean values. Together, these lists represent the four possible combinations of true and false values. Notice that unlike And and Or nodes, Xor only allows two values. +`Math.Xor` accepts two Boolean values, or two lists of Boolean values, and determines whether the values are the same or different. `Math.Xor` compares the input values and returns True if exactly one of the inputs is True. If both values are True or if both values are False, `Math.Xor` returns False. + +In the example below, we start with two lists of Boolean values. Together, these lists represent the 4 possible combinations of True and False values. Notice that unlike `And` and `Or` nodes, `Math.Xor` only allows two values. ___ ## Example File -![Xor](./DSCore.Math.Xor_img.jpg) - +![Math.Xor](./DSCore.Math.Xor_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/DSCore.Math.Xor_img.jpg b/doc/distrib/NodeHelpFiles/DSCore.Math.Xor_img.jpg index 4e1a7560654..061c906894f 100644 Binary files a/doc/distrib/NodeHelpFiles/DSCore.Math.Xor_img.jpg and b/doc/distrib/NodeHelpFiles/DSCore.Math.Xor_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.dyn b/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.dyn index 723db20553f..7b76792cb8b 100644 --- a/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.dyn +++ b/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.dyn @@ -1,27 +1,264 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file +{ + "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "IsCustomNode": false, + "Description": "", + "Name": "DSCore.Thread.Pause", + "ElementResolver": { + "ResolutionMap": { + "Point": { + "Key": "Autodesk.DesignScript.Geometry.Point", + "Value": "ProtoGeometry.dll" + } + } + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "fe5418e22c8d444a87529660399eb6c1", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "89d46ae36ec44d25a95703b6b0ad9047", + "Name": "object", + "Description": "Object to pass through.\n\nvar", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "357ec715a5e1433c93f62cb35e0f0279", + "Name": "msTimeout", + "Description": "Amount of time to pause the thread, in milliseconds.\n\nint", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "061ace2c9a03475fad873bfa745e5342", + "Name": "object", + "Description": "Object passed through.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.Thread.Pause@var,int", + "Replication": "Auto", + "Description": "Pauses the current evaluation thread for a given amount of time.\n\nThread.Pause (object: var, msTimeout: int): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "8f3d510707954377afe9f3b09ae89311", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "5d4c55c625cf41a9880410202d25a118", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "5000;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "85389099bff940dd94cff6c88914564e", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "169c6aa2bcc946d691428b7fa580307a", + "Name": "centerPoint", + "Description": "Center point of circle\n\nPoint\nDefault value : Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0)", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "9b6108242a3242d5bfbed081ab52c752", + "Name": "radius", + "Description": "Radius\n\ndouble\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "d8ee2dc7f2bf4638a60b39f9efd27416", + "Name": "Circle", + "Description": "Circle created with center point and radius", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Circle.ByCenterPointRadius@Autodesk.DesignScript.Geometry.Point,double", + "Replication": "Auto", + "Description": "Creates a Circle with input center Point and radius in the world XY plane, with world Z as normal.\n\nCircle.ByCenterPointRadius (centerPoint: Point = Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0), radius: double = 1): Circle" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "e65f677f222a46bb90466eb3ff466811", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "6cd94e8853214e76bd2b7e8c3f983a14", + "Name": "curve", + "Description": "Autodesk.DesignScript.Geometry.Curve", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ff190769b1884c7a862f76420a2d7830", + "Name": "distance", + "Description": "The distance to extrude the curve\n\ndouble\nDefault value : 1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "bfc826ceac7b44bc9eb989374fc9851c", + "Name": "Surface", + "Description": "The extruded Surface", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Curve.Extrude@double", + "Replication": "Auto", + "Description": "Extrudes a Curve in the normal Vector direction\n\nCurve.Extrude (distance: double = 1): Surface" + } + ], + "Connectors": [ + { + "Start": "061ace2c9a03475fad873bfa745e5342", + "End": "6cd94e8853214e76bd2b7e8c3f983a14", + "Id": "2502f35d7cb649acbeca7efae6d10f5d", + "IsHidden": "False" + }, + { + "Start": "5d4c55c625cf41a9880410202d25a118", + "End": "357ec715a5e1433c93f62cb35e0f0279", + "Id": "177ee1299cc24db79362ee12e4e730ef", + "IsHidden": "False" + }, + { + "Start": "d8ee2dc7f2bf4638a60b39f9efd27416", + "End": "89d46ae36ec44d25a95703b6b0ad9047", + "Id": "efef28569b1f45208b865aac17893891", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": 2.0443849563598633, + "EyeY": 3.4251701831817627, + "EyeZ": -3.5761997699737549, + "LookX": -0.82001298666000366, + "LookY": -2.9229989051818848, + "LookZ": 4.95900821685791, + "UpX": -0.049872010946273804, + "UpY": 0.95212936401367188, + "UpZ": 0.30159971117973328 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "fe5418e22c8d444a87529660399eb6c1", + "Name": "Thread.Pause", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 450.703594627201, + "Y": 3000.54788434371 + }, + { + "Id": "8f3d510707954377afe9f3b09ae89311", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 74.703594627201028, + "Y": 3106.3753843437103 + }, + { + "Id": "85389099bff940dd94cff6c88914564e", + "Name": "Circle.ByCenterPointRadius", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 74.703594627201028, + "Y": 2928.5478843437104 + }, + { + "Id": "e65f677f222a46bb90466eb3ff466811", + "Name": "Curve.Extrude", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 781.703594627201, + "Y": 3000.5478843437104 + } + ], + "Annotations": [], + "X": 275.80681386049889, + "Y": -4229.2298406873888, + "Zoom": 1.5022542176644842 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.md b/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.md index 93f31300680..bfe50a30116 100644 --- a/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.md +++ b/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause.md @@ -1,7 +1,8 @@ ## In Depth -Pause will return the result of a node after pausing the thread for a specified amount of time. In the example below, a circle is extruded into a surface 5 seconds after the thread is run. To use the time delay, the program should be run in Manual. +`Thread.Pause` returns the result of a node after pausing the execution of the graph (thread) for a specified amount of time. + +In the example below, a circle is extruded into a surface 5 seconds after the graph is run. To use the time delay, run mode should be set to Manual. ___ ## Example File -![Pause.gif](./DSCore.Thread.Pause_img.gif) - +![Thread.Pause](./DSCore.Thread.Pause_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause_img.jpg b/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause_img.jpg index d6632da5b8e..d46375a4b5c 100644 Binary files a/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause_img.jpg and b/doc/distrib/NodeHelpFiles/DSCore.Thread.Pause_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/LoopWhile.dyn b/doc/distrib/NodeHelpFiles/LoopWhile.dyn new file mode 100644 index 00000000000..b9b5a1dbe56 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/LoopWhile.dyn @@ -0,0 +1,492 @@ +{ + "Uuid": "5bc4965c-7e46-47ed-9897-8423e8327300", + "IsCustomNode": false, + "Description": "", + "Name": "LoopWhile", + "ElementResolver": { + "ResolutionMap": { + "Point": { + "Key": "Autodesk.DesignScript.Geometry.Point", + "Value": "ProtoGeometry.dll" + } + } + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "8044da1a916648c4b84be4f5d95b25a8", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "12584abbe432453b87b2376c86c06eba", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "10;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "3d11dd7f3bf54501a58b275222fbb3ad", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "ff09cf2a1b4840388f62f64f96d70a27", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "100;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "875822c38a2a4c438e2ab1fc8aab89f4", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "0004af0daccf4f28beca2882238f6aae", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "1;" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "beb2e00cd9ed434c83d649216d25508e", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "14e696687d5f4d63957889b78769d45a", + "Name": "x", + "Description": "Integer value, double value or string\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "be58929b0c184e10ac655ab648f1e3f9", + "Name": "y", + "Description": "Integer value, double value or string\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "1fcd63fadc9b42d7bb290d77a2ccda65", + "Name": "var", + "Description": "The sum of two input numbers, or the concatenation of two strings", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "+@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Returns addition of x and y\n\n+ (x: var[]..[], y: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "5d80cc807fda4dfe9c357a77aa8ded18", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "e762390f9e2d4522890fda16e465f5cc", + "Name": "x", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "03cb9b2d5db946b8a282e00915482a40", + "Name": "y", + "Description": "Integer or double value\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "42e314c027a0481ab87378ca8da4e00e", + "Name": "bool", + "Description": "Result of check", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "<@var[]..[],var[]..[]", + "Replication": "Auto", + "Description": "Compares if x is lower to y\n\n< (x: var[]..[], y: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 42.0, + "WatchHeight": 38.0, + "Id": "22276d337aff4574955cc6f3c8086fa5", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "0d7c96af487349bfa7ee4c385be751e7", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e1b26394c1564b61908aa9eee9fb9bbe", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "8c038f0b2eb849c8a1052592c5d515bb", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "cabb26a1a4dd4c69b840e96eebd65083", + "Name": "initialValue", + "Description": "initial value for loop\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "35fce3fcc3b94ebba087a41b6f7c6735", + "Name": "continueWhile", + "Description": "while loop condition\n\nFunction", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a4cee016fb8942728bc9f4a4610dc1d1", + "Name": "loopBody", + "Description": "while loop body\n\nFunction", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "49d63bf377b7400f8f61a4f29e53e158", + "Name": "result", + "Description": "Result from loop (type: var[]..[])", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "LoopWhile@var[]..[],Function,Function", + "Replication": "Auto", + "Description": "Constructs a while loop node given an initial value, a condition and a loop body.\n\nLoopWhile (initialValue: var[]..[], continueWhile: Function, loopBody: Function): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "cf26477e00ba42d4a18f2fc83f36bddb", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "116af35780a94da9ba94c2df68e41c26", + "Name": "x", + "Description": "X coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "bd1a87c5497e412bbcd96aeeae868d0a", + "Name": "y", + "Description": "Y coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "483667362eae4713b7ede5e8503974f0", + "Name": "z", + "Description": "Z coordinate\n\ndouble\nDefault value : 0", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "a9344c15f30c41f0a1e12f8f58285d51", + "Name": "Point", + "Description": "Point created by coordinates", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", + "Replication": "Auto", + "Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "06a722f777024a8b8dd3b0299b4f1db8", + "NodeType": "CodeBlockNode", + "Inputs": [], + "Outputs": [ + { + "Id": "29ad54b462a947e0a08145bc788d48cf", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "0;" + } + ], + "Connectors": [ + { + "Start": "12584abbe432453b87b2376c86c06eba", + "End": "be58929b0c184e10ac655ab648f1e3f9", + "Id": "606a51b7f6df49feba2fee80c80bbc5d", + "IsHidden": "False" + }, + { + "Start": "ff09cf2a1b4840388f62f64f96d70a27", + "End": "03cb9b2d5db946b8a282e00915482a40", + "Id": "675303e7547246a1bda7b217c95d4b5a", + "IsHidden": "False" + }, + { + "Start": "0004af0daccf4f28beca2882238f6aae", + "End": "cabb26a1a4dd4c69b840e96eebd65083", + "Id": "2b2a4735f32b4a42b9093a563c3b3fb7", + "IsHidden": "False" + }, + { + "Start": "1fcd63fadc9b42d7bb290d77a2ccda65", + "End": "a4cee016fb8942728bc9f4a4610dc1d1", + "Id": "0a5fd58a59534c0fba6d45df9852f9e6", + "IsHidden": "False" + }, + { + "Start": "42e314c027a0481ab87378ca8da4e00e", + "End": "35fce3fcc3b94ebba087a41b6f7c6735", + "Id": "0e9b192ce183427a9a3f2ac77e0582c8", + "IsHidden": "False" + }, + { + "Start": "e1b26394c1564b61908aa9eee9fb9bbe", + "End": "bd1a87c5497e412bbcd96aeeae868d0a", + "Id": "1f66d95d1c4e4fa0b486e1111c6c2c95", + "IsHidden": "False" + }, + { + "Start": "49d63bf377b7400f8f61a4f29e53e158", + "End": "0d7c96af487349bfa7ee4c385be751e7", + "Id": "af5bd126a491440e999c30a33f2ba3c2", + "IsHidden": "False" + }, + { + "Start": "29ad54b462a947e0a08145bc788d48cf", + "End": "116af35780a94da9ba94c2df68e41c26", + "Id": "56828b20d89e4f45bcfb67233f132fb8", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -14.622342109680176, + "EyeY": 12.433808326721191, + "EyeZ": -13.51833438873291, + "LookX": 17.567281723022461, + "LookY": -11.923446655273438, + "LookZ": 6.7045583724975586, + "UpX": 0.31953936815261841, + "UpY": 0.93969261646270752, + "UpZ": 0.12195229530334473 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "8044da1a916648c4b84be4f5d95b25a8", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 497.0789686558569, + "Y": 1165.4119023304916 + }, + { + "Id": "3d11dd7f3bf54501a58b275222fbb3ad", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 497.0789686558569, + "Y": 987.41190233049156 + }, + { + "Id": "875822c38a2a4c438e2ab1fc8aab89f4", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 751.0789686558569, + "Y": 805.41190233049156 + }, + { + "Id": "beb2e00cd9ed434c83d649216d25508e", + "Name": "+", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 751.0789686558569, + "Y": 1131.5844023304915 + }, + { + "Id": "5d80cc807fda4dfe9c357a77aa8ded18", + "Name": "<", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 751.0789686558569, + "Y": 953.58440233049157 + }, + { + "Id": "22276d337aff4574955cc6f3c8086fa5", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1362.0789686558569, + "Y": 929.58440233049157 + }, + { + "Id": "8c038f0b2eb849c8a1052592c5d515bb", + "Name": "LoopWhile", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1015.0789686558569, + "Y": 929.58440233049157 + }, + { + "Id": "cf26477e00ba42d4a18f2fc83f36bddb", + "Name": "Point.ByCoordinates", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1739.0789686558569, + "Y": 838.58440233049157 + }, + { + "Id": "06a722f777024a8b8dd3b0299b4f1db8", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 1362.0789686558569, + "Y": 781.41190233049156 + } + ], + "Annotations": [], + "X": -67.080537066913848, + "Y": -193.98003300977234, + "Zoom": 0.56258090224102208 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/LoopWhile.md b/doc/distrib/NodeHelpFiles/LoopWhile.md new file mode 100644 index 00000000000..002b8946652 --- /dev/null +++ b/doc/distrib/NodeHelpFiles/LoopWhile.md @@ -0,0 +1,8 @@ +## In Depth +`LoopWhile` returns the result of a looped function until the constraints are met. + +In the example below, a simple loop is created to add 10, starting with 1, until the result is larger than 100. `LoopWhile` accepts variables for its `initialValue` input and functions for the `continueWhile` and `loopBody` inputs. `continueWhile` defines the constraints of the loop, which in this example is a Less Than function and an argument of 100. `loopBody` defines what the loop does, which in this example is an Add function with an argument of 10. +___ +## Example File + +![LoopWhile](./LoopWhile_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/LoopWhile_img.jpg b/doc/distrib/NodeHelpFiles/LoopWhile_img.jpg new file mode 100644 index 00000000000..24e9d754ba6 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/LoopWhile_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/Not.dyn b/doc/distrib/NodeHelpFiles/Not.dyn new file mode 100644 index 00000000000..9235172c14c --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Not.dyn @@ -0,0 +1,515 @@ +{ + "Uuid": "3ee03e9e-0903-449f-bf3b-79c761073ea7", + "IsCustomNode": false, + "Description": "", + "Name": "Not", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "946bfc619a1b4033b43ecd0fadc86b6d", + "Name": "Boolean", + "Type": "boolean", + "Type2": "boolean", + "Value": "false", + "Description": "Enables selection between True and False", + "SelectedIndex": 0 + }, + { + "Id": "335c6d9e0501436d84ecb223fc83d98f", + "Name": "Boolean", + "Type": "boolean", + "Type2": "boolean", + "Value": "true", + "Description": "Enables selection between True and False", + "SelectedIndex": 0 + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "Id": "946bfc619a1b4033b43ecd0fadc86b6d", + "NodeType": "BooleanInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "2775d6e446cd4998a49cba0e120b5a15", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Enables selection between True and False", + "InputValue": false + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "ff88a5d55a5a4d6e817656bb5acbd337", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "6d30d49857e449de90deadcb767594e2", + "Name": "input", + "Description": "input", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "b419f72c657b47a38b6c1d740bc301ef", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "!input;" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 50.0, + "WatchHeight": 38.0, + "Id": "3e3fb2a88a7f4ed28d201bfe22a026b4", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "159940ce493e403f88451a0ea1db4f6b", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "f821206d36ef4795bf938bec0d4b97f7", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "998c9f104eab4c79896225c67f83402e", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "314733bfdd014af9908231bdaeb3fdea", + "Name": "x", + "Description": "boolean to reverse.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "0c1b94a87c694cf880a03625a187d390", + "Name": "bool", + "Description": "type var[]..[] (reversed boolean)", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Not@var[]..[]", + "Replication": "Auto", + "Description": "Negates the input, e.g. returns false when the input is true.\n\nNot (x: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 50.0, + "WatchHeight": 38.0, + "Id": "bdf78edc19664e02956e84f33ef9b9e4", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "6e23ac93047545ebb0da6feec1ab08df", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "1d9058852fca409b91c99febc7f6f2eb", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 58.0, + "WatchHeight": 38.0, + "Id": "0f29fdce572f4bb6902cd6fc55300005", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "8bd40829caf5468abf25310d817ce1d3", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "68a0dae9478a4fd98a13eefbbb2c5974", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "73527d42031b4fe5a660c6dac6a6cf7a", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "d562f5979eb1430fbac9e7ba9199c75b", + "Name": "x", + "Description": "boolean to reverse.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "9fc9a3fb96354af2b6043a863735e64b", + "Name": "bool", + "Description": "type var[]..[] (reversed boolean)", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "Not@var[]..[]", + "Replication": "Auto", + "Description": "Negates the input, e.g. returns false when the input is true.\n\nNot (x: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "WatchWidth": 58.0, + "WatchHeight": 38.0, + "Id": "fe7dcb64cdfa4cc4af440d9140365c9b", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "f150123409334673bf8e4faa89b00624", + "Name": "", + "Description": "Node to show output from", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "0f6059385e3a4012b56ebda1fc475d08", + "Name": "", + "Description": "Node output", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualizes a node's output" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "89e05eccecbb4d7f85f3d2fcb10a8e4b", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "c14ed777abe8448fa6f27c9effce50af", + "Name": "input", + "Description": "input", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "70fe4831b82d4ef8b7089bace0abef81", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "!input;" + }, + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "Id": "335c6d9e0501436d84ecb223fc83d98f", + "NodeType": "BooleanInputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "ae13a367cef24dd2b2ab7f4cc28b26d4", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Enables selection between True and False", + "InputValue": true + } + ], + "Connectors": [ + { + "Start": "2775d6e446cd4998a49cba0e120b5a15", + "End": "6d30d49857e449de90deadcb767594e2", + "Id": "5a03ad02d07649f5a354fbec1fadfa7b", + "IsHidden": "False" + }, + { + "Start": "2775d6e446cd4998a49cba0e120b5a15", + "End": "314733bfdd014af9908231bdaeb3fdea", + "Id": "40c9b3d8cb2f4fb89f589f412698df92", + "IsHidden": "False" + }, + { + "Start": "b419f72c657b47a38b6c1d740bc301ef", + "End": "159940ce493e403f88451a0ea1db4f6b", + "Id": "e270c3360c864c7b9b23b3cad87f3ed6", + "IsHidden": "False" + }, + { + "Start": "0c1b94a87c694cf880a03625a187d390", + "End": "6e23ac93047545ebb0da6feec1ab08df", + "Id": "58418657a4444ef79dae8a181e3e2bcc", + "IsHidden": "False" + }, + { + "Start": "9fc9a3fb96354af2b6043a863735e64b", + "End": "8bd40829caf5468abf25310d817ce1d3", + "Id": "3bb5f3f28a2b4d4594ecd90a3fd28b8a", + "IsHidden": "False" + }, + { + "Start": "70fe4831b82d4ef8b7089bace0abef81", + "End": "f150123409334673bf8e4faa89b00624", + "Id": "2d841118a5b441e99c24cdefcb421d77", + "IsHidden": "False" + }, + { + "Start": "ae13a367cef24dd2b2ab7f4cc28b26d4", + "End": "d562f5979eb1430fbac9e7ba9199c75b", + "Id": "8e4400d117e741ffb62244de90ae18de", + "IsHidden": "False" + }, + { + "Start": "ae13a367cef24dd2b2ab7f4cc28b26d4", + "End": "c14ed777abe8448fa6f27c9effce50af", + "Id": "1bed3a88e1e14db3b98634adc44ecab5", + "IsHidden": "False" + } + ], + "Dependencies": [], + "NodeLibraryDependencies": [], + "Thumbnail": "", + "GraphDocumentationURL": null, + "ExtensionWorkspaceData": [ + { + "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", + "Name": "Properties", + "Version": "2.19", + "Data": {} + } + ], + "Author": "None provided", + "Linting": { + "activeLinter": "None", + "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", + "warningCount": 0, + "errorCount": 0 + }, + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.19.0.5742", + "RunType": "Automatic", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "_Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "ConnectorPins": [], + "NodeViews": [ + { + "Id": "946bfc619a1b4033b43ecd0fadc86b6d", + "Name": "Boolean", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 169.387246795515, + "Y": 167.85158187952646 + }, + { + "Id": "ff88a5d55a5a4d6e817656bb5acbd337", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 463.387246795515, + "Y": 243.76533187952646 + }, + { + "Id": "3e3fb2a88a7f4ed28d201bfe22a026b4", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 755.387246795515, + "Y": 243.93783187952647 + }, + { + "Id": "998c9f104eab4c79896225c67f83402e", + "Name": "Not", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 463.387246795515, + "Y": 90.991646211151249 + }, + { + "Id": "bdf78edc19664e02956e84f33ef9b9e4", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 755.387246795515, + "Y": 91.93783187952647 + }, + { + "Id": "0f29fdce572f4bb6902cd6fc55300005", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 763.180607709669, + "Y": 398.94964659352695 + }, + { + "Id": "73527d42031b4fe5a660c6dac6a6cf7a", + "Name": "Not", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 471.18060770966895, + "Y": 398.94964659352695 + }, + { + "Id": "fe7dcb64cdfa4cc4af440d9140365c9b", + "Name": "Watch", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 763.180607709669, + "Y": 550.949646593527 + }, + { + "Id": "89e05eccecbb4d7f85f3d2fcb10a8e4b", + "Name": "Code Block", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 471.18060770966895, + "Y": 550.77714659352682 + }, + { + "Id": "335c6d9e0501436d84ecb223fc83d98f", + "Name": "Boolean", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "ShowGeometry": true, + "X": 177.18060770966895, + "Y": 474.863396593527 + } + ], + "Annotations": [], + "X": -109.64290037726818, + "Y": -82.1667981796878, + "Zoom": 1.0568750229721886 + } +} \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Not.md b/doc/distrib/NodeHelpFiles/Not.md new file mode 100644 index 00000000000..6bf26d2c00f --- /dev/null +++ b/doc/distrib/NodeHelpFiles/Not.md @@ -0,0 +1,8 @@ +## In Depth +The `Not` node returns the opposite of an input Boolean value. The Not node is also referenced as the `!` (exclamation mark) in DesignScript and will convert True to False and vice versa. + +In the example below, `Not` nodes are used to swap Boolean inputs to their opposite. The example also illustrates the use of a code block with `!input` to reverse the Boolean. +___ +## Example File + +![Not](./Not_img.jpg) \ No newline at end of file diff --git a/doc/distrib/NodeHelpFiles/Not_img.jpg b/doc/distrib/NodeHelpFiles/Not_img.jpg new file mode 100644 index 00000000000..d9b0d34dda0 Binary files /dev/null and b/doc/distrib/NodeHelpFiles/Not_img.jpg differ diff --git a/doc/distrib/NodeHelpFiles/modulo_img.jpg b/doc/distrib/NodeHelpFiles/modulo_img.jpg new file mode 100644 index 00000000000..7d911c6032f Binary files /dev/null and b/doc/distrib/NodeHelpFiles/modulo_img.jpg differ