From 5abfb1d911318ed2b4dcecf40568d9935d56b89a Mon Sep 17 00:00:00 2001 From: Andrea Settimi Date: Sun, 11 Feb 2024 18:47:10 +0100 Subject: [PATCH] ADD-MILESTONE: ready for release 1.1.0 --- GH/PyGH/examples/example_slider.py | 2 +- README.md | 18 ++++++++++++- VSCode/scriptsync/README.md | 42 +++++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 3 deletions(-) diff --git a/GH/PyGH/examples/example_slider.py b/GH/PyGH/examples/example_slider.py index 6c7125c..16d8394 100644 --- a/GH/PyGH/examples/example_slider.py +++ b/GH/PyGH/examples/example_slider.py @@ -1,7 +1,7 @@ #! python3 def main(x): - y = 123 + y = 123 a = x - y c = x + y b = 123 diff --git a/README.md b/README.md index dae3b1a..6265831 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,23 @@ To close `script-sync` in RhinoV8, run the command `ScriptSyncStop` in RhinoV8.
-
Script-sync in Grasshopper
+
Script-sync in Grasshopper: + + +
    +
  • btn: click to open a file explorer and connect a script
  • +
  • x: classical input parameter, you can add more
  • +
  • stdout: all errors and print() is deviated here
  • +
  • a: classical output parameter, you can add more
  • +
+
👩‍💻 **`VScode`**: Open a script in VSCode and run it in RhinoV8 by pressing `F4` to run in Rhino or `shift+F4` for Grasshopper. diff --git a/VSCode/scriptsync/README.md b/VSCode/scriptsync/README.md index 3011b97..4a81383 100644 --- a/VSCode/scriptsync/README.md +++ b/VSCode/scriptsync/README.md @@ -29,6 +29,30 @@ You can execute the folloing languages from VSCode with script-sync:

+## Installation +🦏/🦗 **`Rhino/Grasshopper`**: Install script-sync rhino from food4rhino or the packageManager in Rhino (name: "script-sync"). For Grasshopper you might want to get rid of the old version of the plugin before installing the new one. Just right-click on the old icon and click *delete*. + +👩‍💻 **`VScode`**: Install script-syncVSCode extension from the VSCode extension marketplace (name: "script-sync") + +## How to use +🦏 **`Rhino`**: To start `script-sync` in RhinoV8, run the command `ScriptSyncStart` in RhinoV8. This will start a server that listens to commands from VSCode. +To close `script-sync` in RhinoV8, run the command `ScriptSyncStop` in RhinoV8. + +🦗 **`Grasshopper`**: To start `script-sync` in Grasshopper, add the component script-sync: + +

+

+ +
Script-sync in Rhino
+
+ +
+ +
Script-sync in Grasshopper
+
+

+ + ## Installation 🦏/🦗 **`Rhino/Grasshopper`**: Install script-sync rhino from food4rhino or the packageManager in Rhino (name: "script-sync"). For Grasshopper you might want to get rid of the old version of the plugin before installing the new one. Just right-click on the old icon and click *delete*. @@ -42,7 +66,23 @@ To close `script-sync` in RhinoV8, run the command `ScriptSyncStop` in RhinoV8.
-
Script-sync in Grasshopper
+
Script-sync in Grasshopper: + + +
    +
  • btn: click to open a file explorer and connect a script
  • +
  • x: classical input parameter, you can add more
  • +
  • stdout: all errors and print() is deviated here
  • +
  • a: classical output parameter, you can add more
  • +
+
👩‍💻 **`VScode`**: Open a script in VSCode and run it in RhinoV8 by pressing `F4` to run in Rhino or `shift+F4` for Grasshopper.