Aims The aim of this lab is to help setup and install python and various other tools
Using PyEnv for installation of python versions Using Pip to install packages Setup VSCode to edit and run python files Why do I need PyEnv? At present the version of python installed in our linux labs are
PyEnv can be installed by downloading from here https://github.com/pyenv/pyenv or if using a mac use brew install pyenv
If downloading from github do the following
git clone https://github.com/pyenv/pyenv.git ~/.pyenv cd ~/.pyenv && src/configure && make -C src If using homebrew this will be installed into your homebrew path.
Aims The aim of this lab is to introduce more basic Linux commands and tools
Essential Linux Directories Most linux environments have a similar directory structure. The following is a list of the most important directories and their purpose.
Aims The aim of this lab is to introduce more basic Linux commands and tools
Essential Linux Directories Most linux environments have a similar directory structure. The following is a list of the most important directories and their purpose.
Aims The aim of this lab is to introduce more basic Linux commands and tools
Essential Linux Directories Most linux environments have a similar directory structure. The following is a list of the most important directories and their purpose.
Aims The aim of this lab is to setup a simple python project using the Turtle module and experiment with writing code and functions. By the end of the Lab we should be able to
When running the following code in a mayapy session
import maya.standalone maya.standalone.initialize(name='python') The interpreter never returns for the next line of code.
TL;DR was an issue with my userSetup.py where I use cmds.commandPort I guess before maya is ready. I’m guessing this is actually a bug where standalone python reads this before it is ready.
Aims The aim of this lab is to help setup and install python and various other tools
Using PyEnv for installation of python versions Using Pip to install packages Setup VSCode to edit and run python files Why do I need PyEnv? At present the version of python installed in our linux labs are as follows
Aims The aim of this lab is to help setup and install python and various other tools
Using PyEnv for installation of python versions Using Pip to install packages Setup VSCode to edit and run python files Why do I need PyEnv? At present the version of python installed in our linux labs are
Aims The aim of this lab is to introduce the process of test driven development (TDD) and develop some simple tests, we will use the following steps.
Project Setup Test Setup Test Driven Design of a Simple RGBA class using Version control Storing Pixels It is common to store image pixel data using a single unsigned int32_t data type. In C/C++ this is quite simple, however in python these things are a little harder as we don’t have the same data types. For our example we are going to use a single integer value called pixel to store our RGBA values but we will need to encode them using some logic.