Color Ramp Generator
I chose one of the most effortless node-based AI approaches for my first experiment: color ramp. It's similar to a gradient bar you see in Adobe Creative Suite, which in Houdini can be used to create a gradient effect over any line or shape made in Houdini; it's easy as it's a node that can be manipulated by parameter. By connecting Open AI API, I can make it a prompt-based approach without any problem where user text base input will be interpreted via a Python code and will give results to change the color ramps. Using Houdini for this project gives me an advantage as it allows me to interact with the nodes already in the Houdini workspace using Python, also known as Python (Houdini + Python). Color Ramp AI Node 1. Create a Python node named " color_ramp_GPT ," adding the below code in the content area. from openai import OpenAI import hou import ast node = hou.pwd() client = OpenAI() def get_completion(user_prompt, system_message): try: ...