From 1ab04959602d9929b529b4a2b214062fda561c5a Mon Sep 17 00:00:00 2001 From: Andreas Dieckmann Date: Sat, 12 Oct 2024 06:39:49 +0200 Subject: [PATCH] fixed indentation issue in python script --- .../2.x/DividedSurface.EvaluateGridNodes.dyf | 108 ++++++++++-------- 1 file changed, 60 insertions(+), 48 deletions(-) diff --git a/nodes/2.x/DividedSurface.EvaluateGridNodes.dyf b/nodes/2.x/DividedSurface.EvaluateGridNodes.dyf index 2510c6b2..115a36a5 100644 --- a/nodes/2.x/DividedSurface.EvaluateGridNodes.dyf +++ b/nodes/2.x/DividedSurface.EvaluateGridNodes.dyf @@ -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", @@ -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.Output, DynamoCore", @@ -76,7 +76,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.Output, DynamoCore", @@ -97,7 +97,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.Output, DynamoCore", @@ -118,7 +118,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", @@ -144,7 +144,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.CodeBlockNodeModel, DynamoCore", @@ -166,7 +166,7 @@ { "Id": "2b7c4e14ed774ccdbd15b763d932b365", "Name": "", - "Description": "Value of expression at line 1", + "Description": "Wert des Ausdrucks in Zeile 1", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -175,7 +175,7 @@ { "Id": "5fea21b940b8475e9e7ef1e2a08b9098", "Name": "", - "Description": "Value of expression at line 2", + "Description": "Wert des Ausdrucks in Zeile 2", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -184,7 +184,7 @@ { "Id": "71a439d41e3e4b66839612564b54b1ed", "Name": "", - "Description": "Value of expression at line 3", + "Description": "Wert des Ausdrucks in Zeile 3", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -193,7 +193,7 @@ { "Id": "1bd01e58df414038870e26d1d9a96f4d", "Name": "", - "Description": "Value of expression at line 4", + "Description": "Wert des Ausdrucks in Zeile 4", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -201,12 +201,13 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Ermöglicht die direkte Erstellung von DesignScript-Code." }, { "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels", "NodeType": "PythonScriptNode", - "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\nclr.ImportExtensions(Revit.GeometryConversion)\r\n\r\nds = UnwrapElement(IN[0])\r\noverhanging = IN[1]\r\nuvlist = list()\r\nuvnormals = list()\r\nuvxyzs = list()\r\n\r\nface = ds.Host.GetGeometryObjectFromReference(ds.HostReference)\r\ngn = GridNode()\r\nif overhanging == True:\r\n\ti = 0\r\n\tj = 1\r\nelse:\r\n\ti = 1\r\n\tj = 3\r\nu = i\r\nwhile (u < (ds.NumberOfUGridlines-i)):\r\n\tgn.UIndex = u\r\n\tv = i\r\n\tvlist = list()\r\n\tvnormals = list()\r\n\tvxyzs = list()\r\n\twhile (v < (ds.NumberOfVGridlines-i)):\r\n\t\tgn.VIndex = v\r\n\t\tuv = ds.GetGridNodeUV(gn)\r\n \t\tvlist.append(uv)\r\n \t\tvnormals.append(face.ComputeNormal(uv).ToVector())\r\n \t\tvxyzs.append(face.Evaluate(uv).ToPoint())\r\n \t\tv += 1\r\n \tuvlist.append(vlist)\r\n \tuvnormals.append(vnormals)\r\n \tuvxyzs.append(vxyzs)\r\n \tu += 1\r\nOUT = (uvnormals,uvxyzs,face.ToProtoType(),uvlist)", + "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\nclr.ImportExtensions(Revit.GeometryConversion)\r\n\r\nds = UnwrapElement(IN[0])\r\noverhanging = IN[1]\r\nuvlist = list()\r\nuvnormals = list()\r\nuvxyzs = list()\r\n\r\nface = ds.Host.GetGeometryObjectFromReference(ds.HostReference)\r\ngn = GridNode()\r\nif overhanging == True:\r\n\ti = 0\r\n\tj = 1\r\nelse:\r\n\ti = 1\r\n\tj = 3\r\nu = i\r\nwhile (u < (ds.NumberOfUGridlines-i)):\r\n\tgn.UIndex = u\r\n\tv = i\r\n\tvlist = list()\r\n\tvnormals = list()\r\n\tvxyzs = list()\r\n\twhile (v < (ds.NumberOfVGridlines-i)):\r\n\t\tgn.VIndex = v\r\n\t\tuv = ds.GetGridNodeUV(gn)\r\n\t\tvlist.append(uv)\r\n\t\tvnormals.append(face.ComputeNormal(uv).ToVector())\r\n\t\tvxyzs.append(face.Evaluate(uv).ToPoint())\r\n\t\tv += 1\r\n\tuvlist.append(vlist)\r\n\tuvnormals.append(vnormals)\r\n\tuvxyzs.append(vxyzs)\r\n\tu += 1\r\nOUT = (uvnormals,uvxyzs,face.ToProtoType(),uvlist)", + "Engine": "IronPython2", "VariableInputPorts": true, "Id": "1604fdcedf3c4792b63b8f0c9ce84e9c", "Inputs": [ @@ -241,7 +242,7 @@ } ], "Replication": "Disabled", - "Description": "Runs an embedded IronPython script." + "Description": "Führt ein eingebettetes Python-Skript aus." }, { "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", @@ -264,7 +265,7 @@ { "Id": "ccc48206dbda45b4859d0b38e444ce9c", "Name": "DynamoUV", - "Description": "return value", + "Description": "Rückgabewert", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -283,7 +284,7 @@ { "Id": "f5561368a0894fb8865e2f272dbb92b2", "Name": "list", - "Description": "List to chop into sublists\n\nvar[]..[]", + "Description": "Die in Unterlisten zu zerlegende Liste\n\nvar[]..[]", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -292,7 +293,7 @@ { "Id": "52b75fec9ddc4e2ebc67813179f12bc4", "Name": "lengths", - "Description": "Lengths of consecutive sublists to be created from the input list\n\nint[]", + "Description": "Die Längen der aus der eingegebenen Liste zu erstellenden aufeinander folgenden Unterlisten\n\nint[]", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -303,7 +304,7 @@ { "Id": "795ca4298ecb4575a324226e210711ed", "Name": "lists", - "Description": "Sublists created from the list", + "Description": "Die aus der Liste erstellten Unterlisten", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -311,7 +312,7 @@ } ], "Replication": "Auto", - "Description": "Chop a list into a set of consecutive sublists with the specified lengths. List division begins at the top of the list.\n\nList.Chop (list: var[]..[], lengths: int[]): var[]..[]" + "Description": "Zerlegt eine Liste in eine Gruppe aufeinander folgender Unterlisten mit den angegebenen Längen. Die Unterteilung der Liste beginnt an deren Anfang.\n\nList.Chop (list: var[]..[], lengths: int[]): var[]..[]" }, { "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", @@ -322,7 +323,7 @@ { "Id": "20842039e48046ae83f8cc9343d88581", "Name": "list", - "Description": "List to get the item count of.\n\nvar[]..[]", + "Description": "Liste, deren Elementanzahl abgerufen werden soll\n\nvar[]..[]", "UsingDefaultValue": false, "Level": 2, "UseLevels": true, @@ -332,8 +333,8 @@ "Outputs": [ { "Id": "64bd8fec9fa9458988fedc32bab139ea", - "Name": "count", - "Description": "List length.", + "Name": "int", + "Description": "Länge der Liste", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -341,7 +342,7 @@ } ], "Replication": "Auto", - "Description": "Returns the number of items stored in the given list.\n\nList.Count (list: var[]..[]): int" + "Description": "Gibt die Anzahl der Elemente in der angegebenen Liste zurück.\n\nList.Count (list: var[]..[]): int" } ], "Connectors": [ @@ -404,18 +405,29 @@ "Dependencies": [ "5b7a7da0-f3cb-4c81-9245-0277d1d81cd9" ], + "NodeLibraryDependencies": [ + { + "Name": "Clockwork for Dynamo 2.x", + "Version": "2.12.0", + "ReferenceType": "Package", + "Nodes": [ + "01e19d6a59fd4c53b5dbbc9830fc6d6d" + ] + } + ], + "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, @@ -428,119 +440,119 @@ }, "NodeViews": [ { + "ShowGeometry": true, + "Name": "Input", "Id": "ec43968ae4a4477fad44885bf4705f5f", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Input", - "ShowGeometry": true, "Excluded": false, "X": 114.673755244749, "Y": 108.333988344988 }, { + "ShowGeometry": true, + "Name": "Output", "Id": "143b3a896e2b4d8d91995c28819de919", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Output", - "ShowGeometry": true, "Excluded": false, "X": 1227.591561012, "Y": 256.618022773231 }, { + "ShowGeometry": true, + "Name": "Output", "Id": "59b26563aac445dc910406a04e7ae61f", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Output", - "ShowGeometry": true, "Excluded": false, "X": 752.381712820541, "Y": 57.8809869463882 }, { + "ShowGeometry": true, + "Name": "Output", "Id": "0828d98b883e45e28d5be7d423862578", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Output", - "ShowGeometry": true, "Excluded": false, "X": 752.381712820541, "Y": -25.1190130536118 }, { + "ShowGeometry": true, + "Name": "Output", "Id": "8ecf4aae6b13455db46650671b7dfcb0", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Output", - "ShowGeometry": true, "Excluded": false, "X": 752.381712820541, "Y": 141.880986946388 }, { + "ShowGeometry": true, + "Name": "Input", "Id": "d6e37e421fba4ff6be851dbe3c090c15", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Input", - "ShowGeometry": true, "Excluded": false, "X": -91.9703588143526, "Y": 191.151024440977 }, { + "ShowGeometry": true, + "Name": "Code Block", "Id": "f5a56a5344794d60a360ba60e5a33006", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Code Block", - "ShowGeometry": true, "Excluded": false, "X": 520.0, "Y": 136.091666666667 }, { + "ShowGeometry": true, + "Name": "Python Script", "Id": "1604fdcedf3c4792b63b8f0c9ce84e9c", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "Python Script", - "ShowGeometry": true, "Excluded": false, "X": 323.301430049786, "Y": 131.873333333333 }, { + "ShowGeometry": true, + "Name": "UV.ToDynamoUV", "Id": "01e19d6a59fd4c53b5dbbc9830fc6d6d", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "UV.ToDynamoUV", - "ShowGeometry": true, "Excluded": false, "X": 752.83802743675, "Y": 231.461982961396 }, { + "ShowGeometry": true, + "Name": "List.Chop", "Id": "5174bd088e074bf3a4e55a9846372e3a", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "List.Chop", - "ShowGeometry": true, "Excluded": false, "X": 990.687827997543, "Y": 255.496847624033 }, { + "ShowGeometry": true, + "Name": "List.Count", "Id": "a07a44a0a6fd477ea5727ae2661529e1", "IsSetAsInput": false, "IsSetAsOutput": false, - "Name": "List.Count", - "ShowGeometry": true, "Excluded": false, "X": 762.618789935761, "Y": 316.514011325637 } ], "Annotations": [], - "X": -66.6827038338437, - "Y": 181.553138354889, + "X": 86.117296166156308, + "Y": 197.553138354889, "Zoom": 0.64920515613941 } } \ No newline at end of file