SmartHopper 1.2.0-alpha: Script Components Unleashed #358
marc-romu
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This alpha release focuses on powerful AI-assisted scripting workflows, GhJSON merge/edit tools, and clearer on-canvas guidance—so you can create, review, and refine Grasshopper scripts in seconds.
🧠 AI-powered scripting workflows
Create powerful scripts in seconds. Let AI write, review, and refine your code following your instructions.
script_generateandscript_editnow operate directly on GhJSON for Grasshopper script components.script_edit_and_replace_on_canvascombines editing and placement in a single tool call, reducing token usage and simplifying workflows.dataMapping(Flatten/Graft),reverse,simplify,invert,isPrincipal,required, andexpressionfor inputs.dataMapping,reverse,simplify, andinvert.ScriptCodeValidatorflags non-RhinoCommon geometry libraries (e.g. System.Numerics, UnityEngine, numpy, shapely) and helps the AI auto-correct them.script_generateandscript_editinclude a validation retry loop that detects invalid geometry patterns and re-prompts the AI with correction instructions.AIScriptGeneratorComponentnow orchestratesscript_generate/script_editwithgh_get/gh_put, exposingGhJSON,Guid,Summary, andMessageoutputs for better inspection.AIScriptGeneratorComponentandAIScriptReviewComponentno longer require aGuidinput—the target component is selected with the on-canvas button.script_fixtool has been renamed toscript_reviewto better reflect its review-first behavior.🧩 GhJSON merge & document tooling
GhJsonHelperssimplifies applying pivots and restoringInstanceGuids on deserialized components.GhJsonMergermerges two GhJSONGrasshopperDocumentinstances with automatic ID remapping and conflict resolution.gh_mergeAI tool returns merged GhJSON plus merge statistics (components / connections / groups added or deduplicated).GhMergeComponentsGrasshopper component (“Merge GhJSON”) lets you merge two GhJSON documents directly on canvas.gh_getgains acategoryFilterparameter so you can focus AI workflows on specific component or object categories.🎛️ Canvas UX & component UI improvements
StyledMessageDialog(ShowInfo,ShowWarning,ShowError,ShowConfirmation) accepts optionallinkedInstanceGuidandlinkLineColorparameters to enable this linking.ghmergeicon with updatedghget/ghputicons aligned to the merge workflows.🧬 Model guidance & provider updates
AIModelCapabilitiesnow exposesDiscouragedForTools, andAIStatefulAsyncComponentBaseexposesUsingAiToolsandEffectiveRequiredCapabilityto drive badge logic.finish_reasonandmodelin metrics for chat completions.🐞 Stability & quality-of-life fixes
ConversationSessionexposesGetTurnMetrics(turnId)to aggregate metrics across interactions in a turn.TurnId, ensuring proper grouping and reporting.gh_putno longer enters infinite loops when replacement mode is active and no longer hits “object expired during solution” errors; replacement now usesIsolateObject()for safe cleanup and undo support.GhJSON-based script tools have updated schemas requiringnickname, preventing crashes with OpenAI structured output mode.🛠️ Technical Requirements
🤝 We Value Your Feedback!
Help shape SmartHopper's future by:
We hope you enjoy these new features and improvements!
Happy designing! 🎨
What's Changed
Full Changelog: 1.1.1-alpha...1.2.0-alpha
This discussion was created from the release SmartHopper 1.2.0-alpha: Script Components Unleashed.
Beta Was this translation helpful? Give feedback.
All reactions