Maya/Houdini Python Hot-Reload Server for Faster Automation

Hey there! 😄 If you’ve ever used Mayapy (Maya’s embedded Python) or Hython (Houdini’s embedded Python) to run operations in scenes in batch mode, you know how frustratingly slow it can be to repeatedly initialize the interpreter. Whether you're writing unit tests, running automation, or building standalone tools that load multiple scenes, each startup adds unnecessary overhead. To solve this pain point, I built something that might help you: a TCP-based hot-reload server that keeps a persistent Mayapy or Hython process running in the background. Instead of launching the interpreter from scratch for every script execution, this service allows you to: ✨ Keep the DCC process alive — no more repeated startup time 📡 Connect over TCP and send Python snippets dynamically 🐍 Execute code in the live interpreter context, inside the currently loaded scene 🔄 Keep state between calls (e.g., imported modules, loaded scenes, global variables) 🔌 Close or reuse the connection depending on your needs Right now it supports both Mayapy and Hython, and the architecture makes it easy to extend to other embedded Python environments too. If you’re building automation tooling, test suites, or interactive Python-driven pipelines for Maya/Houdini, this might save you a lot of time. Check it out: 👉 https://lnkd.in/gGcUy7Xu Let me know what you think — feedback and contributions are welcome! 🙌 #Maya #Houdini #Python #Tooling #DCC #Development #OpenSource

Gabriel Valderramos nice work! How do you use it yourself ? That’s basically one mayapy process that has one specific scene loaded and you can work with that scene sending commands via port ? How is that different from Maya UI where you can open a port to receive commands and send commands right from IDE? If I run mayapy and open port with cmds, it will be the same? Just trying to see what is the advantage of your approach VS mayapy running in terminal with some opened port to receive commands

Like
Reply

To view or add a comment, sign in

Explore content categories