Tim Lehr

Tim Lehr

Technical Director | Pipeline Developer

Use Python Wheels with Houdini / Nuke in 2019

During development of Scarif, I came across an issue with DCC Applications and certain Python packages. Since we are using quite a few open source Python modules to power our pipeline tools, we resort to a virtual environment in combination with pip to install and manage all these packages. Today, the almost all popular packages… Continue reading

Nuke: Environment Variables in Read / Write

In my job as a Pipeline TD I often resort to old school environment variables to make my life easier. Not only are they really easy to work with, they are also a commonly supported way of keeping file paths relative to a dynamically changeable directory. This is super helpful, as you will be able… Continue reading

Python Scripting in DaVinci Resolve

Starting with DaVinci Resolve 15, Developer Blackmagic added new Scripting functionality to the popular Editing / Grading Suite. The Scripting API (Fusion Script) is implemented in a separate executable called fuscript, which supports two languages at the time of writing: Python 2.7 / 3 and Lua. The integration of Python is especially exciting for any… Continue reading

Lazy database initialization with peewee proxy subclasses

If you are working with a SQL database in Python, I highly recommend to take a look at peewee. It’s a small, but very powerful ORM (Object relational mapping) tool that makes the interaction with your database very pythonic, convenient and quite easy to learn (especially for the SQL beginners among you). I personally use… Continue reading

Python exception hooks with Qt message box

When you develop complex applications or toolsets with Python, a good logging module and proper exception handling can save you a lot of headaches. Especially when those tools go into deployment, they are never bug-free and sooner or later people will tell you about all the unexpected issues they have. With proper logging you can… Continue reading