Posts

Showing posts from May, 2025

Model Context Protocol (MCP) inside Houdini

  Integrating MCP into a Houdini-Based AI Workflow: Final Phase Experience As part of my master’s thesis, I explored natural language control over procedural 3D workflows in Houdini. In the final stage of the project, I integrated MCP (Modern Context Protocol) to enhance interactivity and iteration using conversational memory. Below is a detailed walkthrough of the professional experience, followed by my steps to implement MCP into the pipeline. MCP Integration Steps in Houdini Steps to Integrate MCP with Houdini (Plain Text Format) Check Python Setup in Houdini Open Houdini, go to the Python Shell, and check which version of Python is being used. Make sure it's compatible with MCP and other required libraries. Install MCP Locally Clone the MCP GitHub repository to your system. Run pip install -r requirements.txt to install all dependencies (including openai , langchain , gradio , etc.). Set Up Environment Variables Create a .env file in your MCP folder. Add your Open...

3D Shape Generator

Image
In my second experiment, I wanted to work with curves and save old coordinates so that I could reuse them for similar curve shapes. 3D Shape AI Node   1. Create a Python node named " shape_node_GPT ," adding the below code in the content area.  import openai import hou # Current Python SOP node node = hou.pwd() # Geometry container geo = hou.node("/obj/geo2") if not geo:     geo = hou.node("/obj").createNode("geo", "geo2") # Set OpenAI API key from houdini.env openai.api_key = hou.getenv("OPENAI_API_KEY") # User prompt user_prompt = node.parm("prompt").eval() # System message shape_message_node = hou.node("/obj/geo2/shape_message_node") if shape_message_node:     system_message = shape_message_node.parm("message").eval() else:     hou.ui.displayMessage("Error: shape_message_node not found!", severity=hou.severityType.Error)     system_message = "" # OpenAI call def get_completi...