Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 10, 2024
1 parent 53b9e75 commit 2afcce4
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 441 deletions.
33 changes: 18 additions & 15 deletions nodes/3.x/List.Chop+.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
],
"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"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -55,7 +55,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -81,12 +81,13 @@
}
],
"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"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\n\r\ndef ListChopEvenly(l, n):\r\n\t# https://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks\r\n\treturn [l[i:i + n] for i in xrange(0, len(l), n)]\r\n\r\ndef ListChopUnevenly(l, n):\r\n\tcount = 0\r\n\tmax = len(l)\r\n\tchopped = []\r\n\tfor num in n:\r\n\t\tif count + num > max: end = max\r\n\t\telse: end = count + num\r\n\t\tchopped.append(l[count:end])\r\n\t\tcount = end\t\r\n\treturn chopped\r\n\r\nif isinstance(IN[1], list): OUT = ListChopUnevenly(IN[0], IN[1])\r\nelse: OUT = ListChopEvenly(IN[0], IN[1])",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "3e7a88b1add543fe8db52709e21c6962",
"Inputs": [
Expand Down Expand Up @@ -121,7 +122,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand All @@ -142,18 +143,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand All @@ -166,44 +169,44 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "40e1cf9857b947a69ba965b9ee6b67a2",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -33.3053756740961,
"Y": -64.1775115883125
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "3b823b4d44404245a635b70a25ed0b53",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 407.954536300338,
"Y": -28.9075304509337
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "0df34bfee1aa49eebb78d44e057c9944",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -71.9702593545984,
"Y": 17.7324946992279
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "3e7a88b1add543fe8db52709e21c6962",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 183.954536300338,
"Y": -28.9075304509337
"Y": -28.907530450933706
}
],
"Annotations": [],
Expand Down
2 changes: 1 addition & 1 deletion nodes/3.x/List.ReplaceItemAtIndex+.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif iValues:\r\n\tif isinstance(iValues, list):\r\n\t\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\t\tfor (index, value) in zip(iValues, rValues):\r\n\t\t\t_list[index] = value\r\n\telse: _list[iValues] = rValues\r\nOUT = _list",
"Engine": "IronPython2",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "c05d5d62b15545d09719af88c1b2148e",
"Inputs": [
Expand Down
33 changes: 18 additions & 15 deletions nodes/3.x/List.ReplaceNull.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
],
"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"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -60,7 +60,7 @@
}
],
"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"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -81,12 +81,13 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "items = IN[0]\r\nrep = IN[1]\r\nelementlist = list()\r\nfor item in items:\r\n\tif item is None: \r\n\t\titem = rep\r\n\telementlist.append(item)\r\nOUT = elementlist",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "d65025464d4542c1a49eed8784a6574f",
"Inputs": [
Expand Down Expand Up @@ -121,7 +122,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand All @@ -142,18 +143,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand All @@ -166,43 +169,43 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "464ec39e85ae454a8f1d93a7dc7f2592",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 0.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "bd18411e3c2244f7883473b76b0adccc",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 0.0,
"Y": 84.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "aca2759b79ec422da5a7a7052681ab84",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 449.0,
"Y": 29.0
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "d65025464d4542c1a49eed8784a6574f",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 225.0,
"X": 225.31378522467628,
"Y": 29.0
}
],
Expand Down
Loading

0 comments on commit 2afcce4

Please sign in to comment.