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 b853dc1 commit 1afdd0a
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 121 deletions.
25 changes: 14 additions & 11 deletions nodes/3.x/Clipboard.GetFrom.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 System\r\nfrom System.Threading import Thread, ThreadStart\r\nclr.AddReference(\"System.Windows.Forms\")\r\n\r\nclipboardcontents = '###'\r\n\r\ndef GetText():\r\n def thread_proc():\r\n global clipboardcontents\r\n clipboardcontents = System.Windows.Forms.Clipboard.GetText()\r\n t = Thread(ThreadStart(thread_proc))\r\n t.ApartmentState = System.Threading.ApartmentState.STA\r\n t.Start()\r\n t.Join()\r\n\r\ntry:\r\n\tGetText()\r\n\tOUT = clipboardcontents\r\nexcept:\r\n\tOUT = 'Data could not be copied to clipboard'",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "d7ad9ce4dc2a41f7abf20f54d692bb67",
"Inputs": [
Expand All @@ -39,7 +40,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -60,7 +61,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 @@ -86,7 +87,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"
}
],
"Connectors": [
Expand All @@ -102,18 +103,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 @@ -126,31 +129,31 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "d7ad9ce4dc2a41f7abf20f54d692bb67",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 299.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "caece66368624a1e93559945d62caf13",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 523.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "f70fcfc1bdb14bebbd912dc3c083b95a",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 0.0,
"Y": 0.0
Expand Down
31 changes: 17 additions & 14 deletions nodes/3.x/Clipboard.SendTo.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 System\r\nfrom System.Threading import Thread, ThreadStart\r\nclr.AddReference(\"System.Windows.Forms\")\r\n\r\ndef SetText(text):\r\n def thread_proc():\r\n System.Windows.Forms.Clipboard.SetText(text)\r\n t = Thread(ThreadStart(thread_proc))\r\n t.ApartmentState = System.Threading.ApartmentState.STA\r\n t.Start()\r\n\r\ntry:\r\n\tif IN[0] != \"\" and IN[0] != None:\r\n\t\tSetText(IN[0])\r\n\t\tOUT = IN[0]\r\n\telse:\r\n\t\tOUT = \"Invalid input: Empty string or Null value!\"\r\nexcept:\r\n\tOUT = 'Data could not be copied to clipboard!'",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "d7ad9ce4dc2a41f7abf20f54d692bb67",
"Inputs": [
Expand All @@ -39,7 +40,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 @@ -65,7 +66,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 @@ -86,7 +87,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand All @@ -102,18 +103,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 @@ -126,39 +129,39 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "d7ad9ce4dc2a41f7abf20f54d692bb67",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 233.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "61bed58b50d5483dab265aaebd9e65ff",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 0.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "caece66368624a1e93559945d62caf13",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 457.0,
"Y": 0.0
}
],
"Annotations": [],
"X": 30.0,
"Y": 312.971319311663,
"Zoom": 2.51051625239006
"X": 272.85085488226343,
"Y": 357.68799441540773,
"Zoom": 0.92189967739434653
}
}
Loading

0 comments on commit 1afdd0a

Please sign in to comment.