Skip to content

Commit

Permalink
#343 #347 last commit introduced an error when replacing multiple ind…
Browse files Browse the repository at this point in the history
…ices with a single string
  • Loading branch information
andydandy74 committed Nov 24, 2023
1 parent a3d087a commit ba504de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nodes/2.x/List.ReplaceItemAtIndex+.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif isinstance(iValues, list):\r\n\tif not isinstance(rValues, list): rValues = rValues * len(iValues)\r\n\tfor (index, value) in zip(iValues, rValues):\r\n\t\t_list[index] = value\r\nelse: _list[iValues] = rValues\r\nOUT = _list",
"Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif isinstance(iValues, list):\r\n\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\tfor (index, value) in zip(iValues, rValues):\r\n\t\t_list[index] = value\r\nelse: _list[iValues] = rValues\r\nOUT = _list",
"Engine": "IronPython2",
"VariableInputPorts": true,
"Id": "c05d5d62b15545d09719af88c1b2148e",
"Inputs": [
Expand Down Expand Up @@ -62,7 +63,7 @@
}
],
"Replication": "Disabled",
"Description": "Führt ein eingebettetes IronPython-Skript aus."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand Down Expand Up @@ -188,13 +189,14 @@
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.6.2.15705",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
Expand Down

0 comments on commit ba504de

Please sign in to comment.