Removed 1.x scripts

This commit is contained in:
2020-01-17 15:48:11 +01:00
parent f94bfe057e
commit cb993ed4d7
55 changed files with 11 additions and 1746 deletions

View File

@@ -0,0 +1,399 @@
{
"Uuid": "dda914fd-aaf1-4ff4-a80c-dab136aa16cc",
"IsCustomNode": true,
"Category": "infeeeee.List",
"Description": "Replace tlements which are the same in a list of lists",
"Name": "ReplaceFollowingSameElements",
"ElementResolver": {
"ResolutionMap": {}
},
"Inputs": [],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
"NodeType": "InputNode",
"Parameter": {
"Name": "list",
"TypeName": "var",
"TypeRank": -1,
"DefaultValue": null,
"Description": ""
},
"Id": "0c0a1d3a6aa548988fb6a7a81b3c21c7",
"Inputs": [],
"Outputs": [
{
"Id": "3faab4aa3540445b8e23044f6914251b",
"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.Symbol, DynamoCore",
"NodeType": "InputNode",
"Parameter": {
"Name": "replacement",
"TypeName": "var",
"TypeRank": -1,
"DefaultValue": null,
"Description": ""
},
"Id": "730aa118437c4551853e9c9debd5002c",
"Inputs": [],
"Outputs": [
{
"Id": "f0f72104272f404bb64f677f5cca55ca",
"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": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "# Enable Python support and load DesignScript library\r\nimport clr\r\nclr.AddReference('ProtoGeometry')\r\nfrom Autodesk.DesignScript.Geometry import *\r\n\r\n# The inputs to this node will be stored as a list in the IN variables.\r\nin_list = IN[0]\r\nreplacement = IN[1]\r\ncountUnit = IN[2]\r\nOUT = []\r\nout_list_1 = []\r\nout_list_2 = []\r\nout_list_3 = []\r\n# Place your code below this line\r\nfor layerlists in in_list:\r\n\tlayerlist_counted = layerlists[:]\r\n\tlayerlist_firstorig = layerlist_counted[:]\r\n\tfor num, val in enumerate(layerlists): \r\n\t#egyesével végig megyünk az elemeken\r\n\t\tvalcounter = []\r\n\t\tvalcounter.append(0)\r\n\t\tfor val2 in layerlists[num + 1:]:\r\n\t\t\tif val2 == val:\r\n\t\t\t\tvalcounter.append(0)\r\n\t\t\telse:\r\n\t\t\t\tbreak\r\n\t\tif len(valcounter) > 1:\r\n\t\t\tfor n, x in enumerate(valcounter):\r\n\t\t\t\tlayerlists[num + n] = replacement\r\n\t\t\t\tlayerlist_counted[num + n] = replacement\r\n\t\t\t\tlayerlist_firstorig[num + n] = replacement\r\n\t\t\tlayerlist_counted[num] = str(len(valcounter)) + \" \" + countUnit\r\n\t\t\tlayerlist_firstorig[num] = val\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\tout_list_1.append(layerlists)\r\n\tout_list_2.append(layerlist_counted)\r\n\tout_list_3.append(layerlist_firstorig)\r\n\r\n# Assign your output to the OUT variable.\r\nOUT.append(out_list_1)\r\nOUT.append(out_list_2)\r\nOUT.append(out_list_3)\r\n#OUT = out_list",
"VariableInputPorts": true,
"Id": "12e5518647694bff8a916dc5d5299455",
"Inputs": [
{
"Id": "b14a4d57188f4840a6cb2b16f87b61a9",
"Name": "IN[0]",
"Description": "Input #0",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "b5e8f31efe5040059de70f996ba55d4e",
"Name": "IN[1]",
"Description": "Input #1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "81f06635c538400e9bace1f3a4551d2f",
"Name": "IN[2]",
"Description": "Input #2",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "12aa77f667a24dc9becc0c63d839554c",
"Name": "OUT",
"Description": "Result of the python script",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
"NodeType": "InputNode",
"Parameter": {
"Name": "countUnit",
"TypeName": "var",
"TypeRank": -1,
"DefaultValue": null,
"Description": ""
},
"Id": "5a1034e0a87a415c8ea8772cb855e56c",
"Inputs": [],
"Outputs": [
{
"Id": "bbda9e86ba694081b62614771ab7ce9c",
"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.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "a[0];\na[1];\na[2];",
"Id": "25e83c483fcb4ac0a94ddc37c94cd51b",
"Inputs": [
{
"Id": "43408247d95d4065ac0f90447ccb1e5d",
"Name": "a",
"Description": "a",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "af8079cabc5740b1b252cca7e5ef9db3",
"Name": "",
"Description": "Value of expression at line 1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "7ceeae4fc20b4e819fc5c86d2a4da933",
"Name": "",
"Description": "Value of expression at line 2",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "8863ae73176f483fadfa2930ea1f2b00",
"Name": "",
"Description": "Value of expression at line 3",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Allows for DesignScript code to be authored directly"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
"NodeType": "OutputNode",
"ElementResolver": null,
"Symbol": "allReplaced",
"Id": "b5119e42958347a6bf70e03d38ce165e",
"Inputs": [
{
"Id": "446a139cdee54bb68f5fbe3ec6094ab5",
"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",
"NodeType": "OutputNode",
"ElementResolver": null,
"Symbol": "firstCounted",
"Id": "3e1c7ac77e934e9e8bebef372e5c8d30",
"Inputs": [
{
"Id": "6880f9d3165e4b6b813a0cec0ce0f2e8",
"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",
"NodeType": "OutputNode",
"ElementResolver": null,
"Symbol": "firstOriginal",
"Id": "97af8bd3f2204fb0a393342ce6332531",
"Inputs": [
{
"Id": "b69de9eb3e2d4855958ae98727a234fb",
"Name": "",
"Description": "",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
}
],
"Connectors": [
{
"Start": "3faab4aa3540445b8e23044f6914251b",
"End": "b14a4d57188f4840a6cb2b16f87b61a9",
"Id": "36bcc43d3d4f4df4b2000f046cbeb306"
},
{
"Start": "f0f72104272f404bb64f677f5cca55ca",
"End": "b5e8f31efe5040059de70f996ba55d4e",
"Id": "3428f5ec1dd34712a15a881d2fa7228d"
},
{
"Start": "12aa77f667a24dc9becc0c63d839554c",
"End": "43408247d95d4065ac0f90447ccb1e5d",
"Id": "d023601ba34b4001a63cc10d4ad14be1"
},
{
"Start": "bbda9e86ba694081b62614771ab7ce9c",
"End": "81f06635c538400e9bace1f3a4551d2f",
"Id": "068d3b5149a04fb7a5cc66a986443cb7"
},
{
"Start": "af8079cabc5740b1b252cca7e5ef9db3",
"End": "446a139cdee54bb68f5fbe3ec6094ab5",
"Id": "ae722ecf33f14b4eb0ce065ad89a0821"
},
{
"Start": "7ceeae4fc20b4e819fc5c86d2a4da933",
"End": "6880f9d3165e4b6b813a0cec0ce0f2e8",
"Id": "676c08870e8843d6951f897877bc63af"
},
{
"Start": "8863ae73176f483fadfa2930ea1f2b00",
"End": "b69de9eb3e2d4855958ae98727a234fb",
"Id": "13124606c57a44e3b9174ef14883f9c1"
}
],
"Dependencies": [],
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.2.6826",
"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
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "0c0a1d3a6aa548988fb6a7a81b3c21c7",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 885.0,
"Y": 537.5
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "730aa118437c4551853e9c9debd5002c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 794.33609345810009,
"Y": 832.509492735973
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "12e5518647694bff8a916dc5d5299455",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1267.4986342760399,
"Y": 644.547046003399
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "5a1034e0a87a415c8ea8772cb855e56c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 801.577457354839,
"Y": 935.698928264498
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "25e83c483fcb4ac0a94ddc37c94cd51b",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1441.6968735307942,
"Y": 644.324439160547
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "b5119e42958347a6bf70e03d38ce165e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1670.510550480142,
"Y": 576.749470506702
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "3e1c7ac77e934e9e8bebef372e5c8d30",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1654.3640160963121,
"Y": 653.06805646389
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "97af8bd3f2204fb0a393342ce6332531",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1660.3640160963121,
"Y": 830.06805646389
}
],
"Annotations": [],
"X": -487.0,
"Y": -265.0,
"Zoom": 1.0
}
}