From 54449a2a684caac3fd31a063b24f9243df73134d Mon Sep 17 00:00:00 2001 From: Andreas Dieckmann Date: Fri, 4 Oct 2024 00:07:55 +0200 Subject: [PATCH] #423 #416 --- nodes/3.x/CustomNode.Properties.dyf | 1043 +++++++++++++++++++++++++++ 1 file changed, 1043 insertions(+) create mode 100644 nodes/3.x/CustomNode.Properties.dyf diff --git a/nodes/3.x/CustomNode.Properties.dyf b/nodes/3.x/CustomNode.Properties.dyf new file mode 100644 index 00000000..8b32eb3a --- /dev/null +++ b/nodes/3.x/CustomNode.Properties.dyf @@ -0,0 +1,1043 @@ +{ + "Uuid": "38ea5ab3-5af3-4395-ab54-939142172e9e", + "IsCustomNode": true, + "Category": "Clockwork.ImportExport.Query", + "Description": "Extracts information from a custom node.", + "Name": "CustomNode.Properties", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "Id": "4dfdb9e03ce54175bad67ba143280ab5", + "NodeType": "FunctionNode", + "Inputs": [ + { + "Id": "fe11048093a84676924973a0f1431161", + "Name": "file", + "Description": "File object to read text from\n\nvar", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "5601dc081aea45a19fc486f47e3df8d1", + "Name": "string", + "Description": "Contents of the text file.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "FunctionSignature": "DSCore.IO.FileSystem.ReadText@var", + "Replication": "Auto", + "Description": "Reads a text file and returns the contents as a string.\n\nFileSystem.ReadText (file: var): string" + }, + { + "ConcreteType": "CoreNodeModels.Input.FileObject, CoreNodeModels", + "Id": "2fe7d9041a1d4026acb50d13de3f8fce", + "NodeType": "ExtensionNode", + "Inputs": [ + { + "Id": "65232d0789ea4494a8e7a7470963f08e", + "Name": "path", + "Description": "Path to the file.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "7eca2c0d1de74174acbcb114db83766d", + "Name": "file", + "Description": "File object", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Creates a file object from the given path" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore", + "Parameter": { + "Name": "path", + "TypeName": "string", + "TypeRank": 0, + "DefaultValue": null, + "Description": "" + }, + "Id": "b78dd37f3a2d40e7a4c817dfb0a4b7be", + "NodeType": "InputNode", + "Inputs": [], + "Outputs": [ + { + "Id": "4e2679570c214b7c8a75cae7978fc3b4", + "Name": "", + "Description": "Symbol", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "Version", + "Id": "4ab4a638926e47cb87a33e93d40f41fa", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "a4226286caf7431abfe7a6ac19370cf5", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "Name", + "Id": "7d8bf762420d40ea8666cc1b29ebcdad", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "8612297b94bb43ffb6bfc3678a8daf41", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "ID", + "Id": "dcc2ea5873f0455282b005b366024df0", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "f1498757247e41a99b1c6b135db2fbac", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "Description", + "Id": "14d99cc694864d9bb2a5abfaf55395c0", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "00074196ea114d018a931c7b0d13ad23", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "Category", + "Id": "a861ef281252465090f0ddd2bf0a727c", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "87ffe0abaedd4fb4b36b4f039f62e28b", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "Id": "8bf5adf256d04893ad0d696ac5dd3f56", + "NodeType": "CodeBlockNode", + "Inputs": [ + { + "Id": "ad80eab341564cca93ade913f73ca471", + "Name": "seq", + "Description": "seq", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "f65dd190fc7d4001920cc82ddbe1daa9", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "b5372cc5c804449391095c7af3d8cf3a", + "Name": "", + "Description": "Value of expression at line 2", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "fb4df4307946486b85074358bd626e55", + "Name": "", + "Description": "Value of expression at line 3", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "92ea5567684740d48c9e3fff77eb944f", + "Name": "", + "Description": "Value of expression at line 4", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ea054269ee8c4b6f999abcb91b532207", + "Name": "", + "Description": "Value of expression at line 5", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "c273fc9f88cc4e7ab0534dc43519f387", + "Name": "", + "Description": "Value of expression at line 6", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "7639cc7df69d4656a9b17f0c75fc03c4", + "Name": "", + "Description": "Value of expression at line 7", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "56c7289d56de477d93910d98587f34bf", + "Name": "", + "Description": "Value of expression at line 8", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "949d5c0adcc34f9ca3a4001078b7c44d", + "Name": "", + "Description": "Value of expression at line 9", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "591ab86fcd864af592bd11d615ec7748", + "Name": "", + "Description": "Value of expression at line 10", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "6cb13dd01b81477f8c4cc2fe076ad966", + "Name": "", + "Description": "Value of expression at line 11", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "64c0f3651da34708b7269c67e04b9278", + "Name": "", + "Description": "Value of expression at line 12", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "537cf3b000bb4aa6b788c12fe3bf8e90", + "Name": "", + "Description": "Value of expression at line 13", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "3f1744193e1d4d068c58c10b201e265a", + "Name": "", + "Description": "Value of expression at line 14", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "33968f9fb38d4f14b7f36ab544502723", + "Name": "", + "Description": "Value of expression at line 15", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "a80bbb6bf0aa4e8ea27f8a9c866094d2", + "Name": "", + "Description": "Value of expression at line 16", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "60be979032094acbb375c2f43a428128", + "Name": "", + "Description": "Value of expression at line 17", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly", + "Code": "seq[0];\nseq[1];\nseq[2];\nseq[3];\nseq[4];\nseq[5];\nseq[6];\nseq[7];\nseq[8];\nseq[9];\nseq[10];\nseq[11];\nseq[12];\nseq[13];\nseq[14];\nseq[15];\nseq[16];" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "Inputs", + "Id": "72d9fbc9e41d491290e3b4e9ccf1e584", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "eccabd802bb94abba17e0f449efdc739", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "InputDataTypes", + "Id": "ce01b5671e1844e49c243e1c5104a257", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "4fb919630c7e42e9acad953d09dce2df", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "InputDefaultVals", + "Id": "68fdc78dd3bb43f998db0ea7868facf2", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "dec323005a5b42f2a2eacf3f3ddd0a67", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "Outputs", + "Id": "e140dd133a7b4c1b81337a4a4cb2c7da", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "1e0a3a862b594203a2a655c4c17cb4c2", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "PythonScripts", + "Id": "c65d413ae04548a6873c43bccf9eb59a", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "f6df7c5664994ee3960be4930e1aaebe", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "NestedCustomNodes", + "Id": "4af284c52ac14d7fb01cf69f833b1ad3", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "a65cc3a7321942ac98c7a492f1bf02fe", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "CustomNodesCount", + "Id": "7f665a833e9c4febba8e5baa51a15e61", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "8cb3518b060641a39a084bed06d33e88", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "NestedBuiltinNodes", + "Id": "60f7651dd1254a209ae508a9b19f70ef", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "7c477341bbc448b5ab1c684397fd6836", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "BuiltinNodesCount", + "Id": "888e1feea1304eccaa6db2c64aff9881", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "f0925abe81564563a2ce041017650ca4", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "InputDescriptions", + "Id": "53d88b453288434ba6dee835a9e7e905", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "a4f0d9a39b5d44c6bc2a1420e5c885bd", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "OutputDescriptions", + "Id": "17d87e9ad691437894323b3454cf8f5f", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "110e203c54524bd689aa10cf10b5208b", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", + "ElementResolver": null, + "Symbol": "IsVisibleInLibrary", + "Id": "9391dbc69e204fcabfd14a1279a15922", + "NodeType": "OutputNode", + "Inputs": [ + { + "Id": "9dee8cbf5f924cebb4f104c5b84b3c90", + "Name": "", + "Description": "", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [], + "Replication": "Disabled", + "Description": "A function output, use with custom nodes" + }, + { + "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels", + "Code": "import clr\r\nimport xml.etree.ElementTree as ET\r\nimport json\r\n\r\nclass CustomNode:\r\n\tdef __init__(self):\r\n\t\tself.Version = None\r\n\t\tself.Name = None\r\n\t\tself.ID = None\r\n\t\tself.Description = None\r\n\t\tself.Category = None\r\n\t\tself.VisibleInLibrary = True\r\n\t\tself.Inputs = []\r\n\t\tself.InputDescriptions = []\r\n\t\tself.InputDataTypes = []\r\n\t\tself.InputDefaultValues = []\r\n\t\tself.Outputs = []\r\n\t\tself.OutputDescriptions = []\r\n\t\tself.PythonScripts = []\r\n\t\tself.NestedCustomNodes = []\r\n\t\tself.CustomNodesCount = []\r\n\t\tself.NestedBuiltinNodes = []\r\n\t\tself.BuiltinNodesCount = []\t\t\r\n\tdef ByJSON(self, str):\r\n\t\tdata = json.loads(str)\r\n\t\tself.Version = data['View']['Dynamo']['Version']\r\n\t\tself.Name = data['Name']\r\n\t\tself.ID = data['Uuid']\r\n\t\tself.Description = data['Description']\r\n\t\tself.Category = data['Category']\r\n\t\tself.VisibleInLibrary = data['View']['Dynamo']['IsVisibleInDynamoLibrary']\r\n\t\tfor node in data['Nodes']:\r\n\t\t\tif node['NodeType'] == \"InputNode\":\r\n\t\t\t\tself.Inputs.append(node['Parameter']['Name'])\r\n\t\t\t\tself.InputDescriptions.append(node['Parameter']['Description'].strip())\r\n\t\t\t\tself.InputDataTypes.append(node['Parameter']['TypeName'])\r\n\t\t\t\tif node['Parameter']['DefaultValue']: self.InputDefaultValues.append(node['Parameter']['DefaultValue'])\r\n\t\t\t\telse: self.InputDefaultValues.append('')\r\n\t\t\telif node['NodeType'] == \"OutputNode\":\r\n\t\t\t\toutputdef = node['Symbol'].split('\\r\\n')\r\n\t\t\t\tself.Outputs.append(outputdef[-1])\r\n\t\t\t\toutputdef2 = ''\r\n\t\t\t\tif len(outputdef) > 1: \r\n\t\t\t\t\tfor line in outputdef[:-1]: outputdef2 += line[2:].strip() + \" \"\r\n\t\t\t\tself.OutputDescriptions.append(outputdef2)\r\n\t\t\telif node['NodeType'] == 'PythonScriptNode': self.PythonScripts.append(node['Code'])\r\n\t\t\telif node['NodeType'] == 'FunctionNode' and node['Concrete'+'Type'] == 'Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore':\r\n\t\t\t\tcustomnodename = data['View']['NodeViews'][data['Nodes'].index(node)]['Name']\r\n\t\t\t\tif customnodename not in self.NestedCustomNodes:\r\n\t\t\t\t\tself.NestedCustomNodes.append(data['View']['NodeViews'][data['Nodes'].index(node)]['Name'])\r\n\t\t\t\t\tself.CustomNodesCount.append(1)\r\n\t\t\t\telse: self.CustomNodesCount[self.NestedCustomNodes.index(customnodename)] += 1\r\n\t\t\telse:\r\n\t\t\t\tbuiltinnodename = data['View']['NodeViews'][data['Nodes'].index(node)]['Name']\r\n\t\t\t\tif builtinnodename not in self.NestedBuiltinNodes:\r\n\t\t\t\t\tself.NestedBuiltinNodes.append(data['View']['NodeViews'][data['Nodes'].index(node)]['Name'])\r\n\t\t\t\t\tself.BuiltinNodesCount.append(1)\r\n\t\t\t\telse: self.BuiltinNodesCount[self.NestedBuiltinNodes.index(builtinnodename)] += 1\t\t\t\r\n\tdef ByXML(self, str):\r\n\t\troot = ET.fromstring(str)\r\n\t\tself.Version = root.get(\"Version\")\r\n\t\tself.Name = root.get(\"Name\")\r\n\t\tself.ID = root.get(\"ID\")\r\n\t\tself.Description = root.get(\"Description\")\r\n\t\tself.Category = root.get(\"Category\")\r\n\t\tisvisible = root.get(\"IsVisibleInDynamoLibrary\")\r\n\t\tif isvisible: self.VisibleInLibrary = isvisible\t\t\r\n\t\tfor child in root:\r\n\t\t\tif child.tag == \"Elements\":\r\n\t\t\t\tfor element in child:\r\n\t\t\t\t\tif element.tag == \"Dynamo.Nodes.Symbol\" or element.tag == \"Dynamo.Graph.Nodes.CustomNodes.Symbol\":\r\n\t\t\t\t\t\tfor symbol in element:\r\n\t\t\t\t\t\t\tinputdef = symbol.get(\"value\")\r\n\t\t\t\t\t\t\tinputdef2 = inputdef.split(\":\")\r\n\t\t\t\t\t\t\tif inputdef2[0].startswith('//'):\r\n\t\t\t\t\t\t\t\tinputdef4 = inputdef2[0].splitlines()\r\n\t\t\t\t\t\t\t\tself.Inputs.append(inputdef4[-1].strip())\r\n\t\t\t\t\t\t\t\tself.InputDescriptions.append(inputdef4[0][2:].strip())\r\n\t\t\t\t\t\t\telse:\r\n\t\t\t\t\t\t\t\tself.Inputs.append(inputdef2[0].strip())\r\n\t\t\t\t\t\t\t\tself.InputDescriptions.append(\"\")\r\n\t\t\t\t\t\t\tif len(inputdef2) > 1:\r\n\t\t\t\t\t\t\t\tinputdef3 = inputdef2[1].split(\"=\")\r\n\t\t\t\t\t\t\t\tself.InputDataTypes.append(inputdef3[0].strip())\r\n\t\t\t\t\t\t\t\tif len(inputdef3) > 1: self.InputDefaultValues.append(inputdef3[1].strip())\r\n\t\t\t\t\t\t\t\telse: self.InputDefaultValues.append(\"\")\r\n\t\t\t\t\t\t\telse:\r\n\t\t\t\t\t\t\t\tself.InputDataTypes.append(\"\")\r\n\t\t\t\t\t\t\t\tself.InputDefaultValues.append(\"\")\r\n\t\t\t\t\telif element.tag == \"Dynamo.Nodes.Output\" or element.tag == \"Dynamo.Graph.Nodes.CustomNodes.Output\":\r\n\t\t\t\t\t\tfor symbol in element:\r\n\t\t\t\t\t\t\toutputdef = symbol.get(\"value\")\r\n\t\t\t\t\t\t\tif outputdef != None:\r\n\t\t\t\t\t\t\t\tif outputdef.startswith('//'):\r\n\t\t\t\t\t\t\t\t\toutputdef2 = outputdef.splitlines()\r\n\t\t\t\t\t\t\t\t\tself.Outputs.append(outputdef2[-1].strip())\r\n\t\t\t\t\t\t\t\t\tself.OutputDescriptions.append(outputdef2[0][2:].strip())\r\n\t\t\t\t\t\t\t\telse:\r\n\t\t\t\t\t\t\t\t\tself.Outputs.append(outputdef.strip())\r\n\t\t\t\t\t\t\t\t\tself.OutputDescriptions.append(\"\")\r\n\t\t\t\t\telif element.tag == \"DSIronPythonNode.PythonNode\" or element.tag == \"PythonNodeModels.PythonNode\":\r\n\t\t\t\t\t\tfor script in element:\r\n\t\t\t\t\t\t\tif script.text != None: self.PythonScripts.append(script.text)\r\n\t\t\t\t\telif element.tag == \"Dynamo.Nodes.Function\" or element.tag == \"Dynamo.Graph.Nodes.CustomNodes.Function\":\r\n\t\t\t\t\t\tif element.get(\"nickname\") in self.NestedCustomNodes:\r\n\t\t\t\t\t\t\tself.CustomNodesCount[self.NestedCustomNodes.index(element.get(\"nickname\"))] += 1\r\n\t\t\t\t\t\telse:\r\n\t\t\t\t\t\t\tself.NestedCustomNodes.append(element.get(\"nickname\"))\r\n\t\t\t\t\t\t\tself.CustomNodesCount.append(1)\r\n\t\t\t\t\telse:\r\n\t\t\t\t\t\tif element.get(\"nickname\") in self.NestedBuiltinNodes:\r\n\t\t\t\t\t\t\tself.BuiltinNodesCount[self.NestedBuiltinNodes.index(element.get(\"nickname\"))] += 1\r\n\t\t\t\t\t\telse:\r\n\t\t\t\t\t\t\tself.NestedBuiltinNodes.append(element.get(\"nickname\"))\r\n\t\t\t\t\t\t\tself.BuiltinNodesCount.append(1)\r\n\r\ndef CustomNodeByFormat(str):\r\n\tCN = CustomNode()\r\n\tif str.startswith(\"