GHPython pattern

I wanted to create a screen pattern on a selected surface from Rhino using a chatbot script in GHPYhton. it shows no error on the code, but it does not show anything in the Rhino environment . Can anyone help me with that problem?
edit from using chatgpt.3dm (1.6 MB)
edit_for_using chatgpt.gh (32.4 KB)

This is going to be a tough one with the lack of information provided and the copy pasting code from a source like ChatGPT.

  1. First you’ll need to describe much more specifically what you’re trying to achieve.
  2. Does this need to be a custom component or can you use the components in grasshopper or Paneling Tools (installable from PackageManager command)

Here’s a basic script that divides a surface you can get started with. There are hundreds of videos like this on YouTube.
divide surface.gh (13.6 KB)

If it needs to be a custom Python component, this is just my opinion but, I don’t believe ChatGPT isn’t the best tool for learning niche APIs like Rhino. A lot of the ChatGPT generated methods are often non-existent or method signatures are just plain wrong. Not to mention that most communities definitely don’t enjoy fixing generated code. You’re better off trying to write the code yourself and asking questions here along the way. Especially since you’ll likely want to understand how it works to improve and maintain it. I’d take a look into the Rhino python developer guides if that’s your intent.

Hope that’s helpful. :slight_smile:

1 Like

Thank you so much, Bob @bfrederick

1 Like