Well, I reckon this will be my last post on this topic. I’ll explain why, but first I want to post something unexpected that I discovered during this process. It was told to me by Claude itself and had that not happened I would never have suspected it.
When you close/end a Claude session it does in fact not end. It stays active like a regular TSR (Terminate and Stay Resident) application. The only way to actually end a Claude session is to close it and then open Task Manager and end it there too. This matters because if you just close Claude and the re-open it later without an intervening system restart anything you do will will behave just as though you never closed Claude at all. This can make a big difference if you want to “start over” with a new approach to the situation you were previously working on.
Now, about why I started this thread: I wanted to see if I could make 3D printable designs by giving Claude a concise prompt instead of by creating a new GH file from scratch using standard GH components. I found a way to actually do this a couple of months ago, and I posted the method here, but it was awkward and actually required more time to finalize than doing with just regular GH methods. But when I saw that there was a way to get a direct connection between Claude & Rhino I thought maybe that would be better.
Well, I came to the conclusion it wasn’t.
I did finally get the Claude/Rhino connection to work. How that happened I do not know - I did try lots of things that didn’t work, but after restarting my PC and fussing a bit I discovered the connection had been made and everything seemed to work OK.
So of course I gave Claude a pretty precise prompt telling it to make a typical 3D printable object. It was a vase shape made by Lofting 5 Loft curves spaced equally up to a height of 150 mm. I made random guesses at what parameters to use, and this is the final result I was able to get. NOte that this is an image from Rhino9; it looks a bit different in Rhino8:
I don’t know why Rhino9 highlights the edge lines like it does. I tried to turn that off but was not successful. And yes, it is ugly. That’s what happens when you make random guesses.
Claude was never able to make a workable solution. What it does is generate a Python script that runs either in Rhino or GH (I stick to GH1 because GH2 scares me.) Getting the Python script debugged takes several iterations with Claude because Claude generates some Python coding errors and I make some errors editing the Python as Claude instructs.
But finally Claude came up with a script that actually produced a working GH file that ran and produced output. Unfortunately the result was not good. It had missing wires, disconnected GH components, and as produced was not even close to being able to make what I had described in my prompt. The time it took to get to that point was quite a bit greater than the time it would have taken me to write the GH file myself from scratch.
So in order to make this posting I tweaked the script a fair amount to make the image I showed above. The finished GH file is attached below, but it really doesn’t show the whole picture. You’ll see there are 2 groups of sliders - these were part of Claude’s solutions. The bottom group came from one Python script that ran in either Rhino or GH (I forget which), and the top group that comes from the Python component you see.
For me the time it took to get the Claude solution to work was longer and far more tedious than just using native GH. So that’s what I’ll be doing. I do appreciate all the help I got with this situation - so thanks to everyone who contributed.
StarBowlNative2-semifixed.gh (26.8 KB)