Blog

2021

Python 3 Support in VFX Pipelines

Jan 08, 2021

Late last year, I was looking to find out where VFX stands as an industry in regards to python 3 support. I knew that good people around VFX Reference Platform are keeping tabs on the general coverage for major DCCs and libraries via google spreadsheet and, like most pipeline TDs, I kept an eye on general developments in this area myself. The question around switching to Python 3 was popping up more and more at work, but unlike most of...

Read more →

Using Environment Variables for Texture Paths in Maya

Jan 02, 2021

I don’t know how well known this fact is, but you can use environment variables in the path attribute in the file node: In this case, MY_IMAGES is a variable that points to a location where my images reside and I can use it as a shorthand to that location on the file system (a network location or whatever). I’m on windows, but if you used Unix-like systems (or Houdini 😃) you will recognize dollar sign notation. To refer to...

Read more →

2020

Debugging in Maya with debugpy and VSCode

Dec 25, 2020

Debugging your python code in Maya is particularly painful subject, for sure. Proper debugging. With a debugger… I’ve tried many times and gave up. Setting it all up and making it work is just way too much of a hassle. I know some people have made it work with pycharm but a) I dont use pycharm and b) I still think there are some issues there (more info here, here, and here). This post is about vscode and for a...

Read more →

Live Reload your Python Code in Maya

Dec 19, 2020

Far too often I’ve seen TDs close Maya and reopen it just to check how the changes they made to the tool they are creating is now running. I’ve done it myself! It’s needed because once imported, python module lives in memory and to refresh the memory you need to close the session and start anew. But this is a huge waste of time. Python is supposed to be fast to iterate and fast to prototype with. What we basically...

Read more →

Building Python 2.7.11 with Visual Studio 2015

Nov 07, 2020

Official Python 2.7 is compiled with MSC v.1500 (Visual Studio 2008). Maya 2018 through 2020 use slightly different build of cPython: For reference Visual C++ version _MSC_VER Visual C++ 2005 (8.0) 1400 Visual C++ 2008 (9.0) 1500 Visual C++ 2010 (10.0) 1600 Visual C++ 2012 (11.0) 1700 Visual C++ 2013 (12.0) 1800 Visual C++ 2015 (14.0) 1900 Important notes Before going further, I want to make sure it is clear this isn’t something you should be doing unless absolutely necessary....

Read more →