Querying the FPS preference in Maya
This tickles the funny bone.
>>> import maya.mel as mel
>>> fps = mel.eval('float $fps = `currentTimeUnitToFPS`')
>>> print(fps)
24.0
Let me know in the comments below if this can be improved...
This tickles the funny bone.
>>> import maya.mel as mel
>>> fps = mel.eval('float $fps = `currentTimeUnitToFPS`')
>>> print(fps)
24.0
Let me know in the comments below if this can be improved...
A very annoying bug came to light in mid-October which makes Maya 2018 binary scene files (*.mb) unreadable if they are larger than ~2 GB in size.
To be exact, the bug is hit when the file size is larger than 2147483647 bytes, the maximum positive value for a 32-bit signed binary integer.
This is reminder-to-self about how to get set up and contribute to PySide2 using Gerrit. It could also be a fun read "on the bus" before actually setting this up yourself, to get an overview on what's required to get up and running with Gerrit.
Qt.py is now available on conda-forge!
## Enable conda-forge
conda config --add channels conda-forge
## Create environment with Python 3.6, PySide2 and Qt.py
conda create --mkdir --prefix ~/condaenvs/myenv python=3.6 pyside2 qt.py
## Run Python
~/condaenvs/myenv/bin/python --version
## Run pip
~/condaenvs/myenv/bin/pip --version
Yesterday, @jschueller added pyside2-feedstock
to conda-forge. This means we can now finally install PySide2 easily in Python 2.7, 3.5 and 3.6 on Windows, Linux and macOS using conda.
I've received questions lately on the issues that people are having while attempting to build PySide2 on Windows, macOS and Linux. Instead of building PySide2, there's actually a workaround which works just as well for some people...
Not sure how I didn't learn about this until today. Anyways, if you end up with missing libs on CentOS/RedHat, use repoquery to find missing libs.
A boilerplate which can be used on Windows and Linux/macOS in order to asynchronously run subprocesses. This requres Python 3.6.
It seems Autodesk did not create a Render Setup documentation. This is me collecting code snippets and exploring Python functions.
How do you know a user doesn't have the wrong version of Qt.py when running your application?
– Simple, you bundle Qt.py with your application. Here's a short write-up on how you could go about doing just that.