Curve Tool Generator
In my second experiment, I wanted to work with curves and save old coordinates so that I could reuse them for similar curve shapes. Curve AI Node 1. Create a Python node named " curve_node_GPT ," adding the below code in the content area. from openai import OpenAI import hou node = hou.pwd() client = OpenAI() def get_completion(user_prompt, curve_message): """ Calls OpenAI API and returns structured curve coordinates. """ try: messages = [ {"role": "system", "content": curve_message}, {"role": "user", "content": user_prompt} ] response = client.chat.completions.create( model="gpt-4-turbo-preview", messages=messages, temperature=1.0, ...