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 31db797 commit 8acc7c3
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 210 deletions.
47 changes: 25 additions & 22 deletions nodes/3.x/DateTime.CalendarWeek.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nimport datetime\r\nyear = IN[0]\r\nmonth = IN[1]\r\nday = IN[2]\r\nOUT = datetime.date(year, month, day).isocalendar()[1]",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "86877ccc2e084ab7b216b8554a140142",
"Inputs": [
Expand Down Expand Up @@ -57,7 +58,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -68,7 +69,7 @@
{
"Id": "0c3d9f7e23904da1916b58cc95eb6bcb",
"Name": "dateTime",
"Description": "A DateTime.\n\nvar",
"Description": "DateTime-Wert, von dem Komponenten abgerufen werden sollen\n\nvar",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -79,7 +80,7 @@
{
"Id": "fd7dffe9b52e41efb6f61f4455802932",
"Name": "year",
"Description": "var",
"Description": "Numerische Darstellung des Jahres (1–9999)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -88,7 +89,7 @@
{
"Id": "0185e44d92f8482695894caee342d8c2",
"Name": "month",
"Description": "var",
"Description": "Numerische Darstellung des Monats (1–12)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -97,7 +98,7 @@
{
"Id": "28257aec477c49f9957b080aad8a5ecd",
"Name": "day",
"Description": "var",
"Description": "Numerische Darstellung des Tages (1–[Tage im Monat])",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -106,7 +107,7 @@
{
"Id": "ff0f32d4c8774a3da30e60282509007d",
"Name": "hour",
"Description": "var",
"Description": "Numerische Darstellung der Stunde (0–23)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -115,7 +116,7 @@
{
"Id": "55c4e479599b41d78e63f4f03f8c2b30",
"Name": "minute",
"Description": "var",
"Description": "Numerische Darstellung der Minuten (0–59)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -124,7 +125,7 @@
{
"Id": "23828f47a3c44c73887d50fe080271fb",
"Name": "second",
"Description": "var",
"Description": "Numerische Darstellung der Sekunden (0–59)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -133,15 +134,15 @@
{
"Id": "e82443812cd14bf1902c92ae05bf9a71",
"Name": "millisecond",
"Description": "var",
"Description": "Numerische Darstellung der Sekunden (0–999)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Extracts the individual components of a DateTime.\n\nDateTime.Components (dateTime: var): var[]..[]"
"Description": "Extrahiert die einzelnen Komponenten eines DateTime-Werts.\n\nDateTime.Components (dateTime: var): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -167,7 +168,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 @@ -188,7 +189,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand Down Expand Up @@ -219,18 +220,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 @@ -243,41 +246,41 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "86877ccc2e084ab7b216b8554a140142",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 496.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "DateTime.Components",
"Id": "5478530b274b43c4821a508d738ab0ec",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "DateTime.Components",
"ShowGeometry": true,
"Excluded": false,
"X": 250.0,
"Y": 0.5
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "95dfc4c104304edb8a76459f46ee503e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 128.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "bb7288e58f6b451aa266a00f3de4daf0",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 693.0,
"Y": 0.0
Expand Down
31 changes: 17 additions & 14 deletions nodes/3.x/DateTime.IsEarlier.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\n\r\ndef isEarlier(date1, date2):\r\n\treturn date1 < date2\r\n\r\ndates1 = IN[0]\r\ndates2 = IN[1]\r\n\r\nif not dates1 or not dates2: OUT = None\r\nelif isinstance(dates1, list) and isinstance(dates2, list): OUT = [isEarlier(x, y) for x,y in zip(dates1, dates2)]\r\nelif isinstance(dates1, list): OUT = [isEarlier(x, dates2) for x in dates1]\r\nelif isinstance(dates2, list): OUT = [isEarlier(dates1, x) for x in dates2]\r\nelse: OUT = isEarlier(dates1, dates2)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "21e42b3c39824adb897b47065ebc9adb",
"Inputs": [
Expand Down Expand Up @@ -81,7 +82,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -107,7 +108,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 @@ -133,7 +134,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 @@ -154,7 +155,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand All @@ -175,18 +176,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 @@ -199,41 +202,41 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "21e42b3c39824adb897b47065ebc9adb",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 289.0,
"Y": 62.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "ccf64b2026254c98a556da8de12e81a4",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -64.0,
"Y": 33.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "6653114df6c04a90af9a848c142f0b9b",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -64.0,
"Y": 117.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "e0907e2d55a442c0a1c18f259e7f303b",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 513.0,
"Y": 62.0
Expand Down
Loading

0 comments on commit 8acc7c3

Please sign in to comment.