Python

MayaPY not working

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.

Lab 3 PyEnv

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?

Lab 3 Test Driven Development

Aims The aim of this lab is to introduce pytest and the process of Test Driven Development, we will do this in the following way. Use uv to set up a pytest Python environment.

Lab 3 Test Driven Development

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.

Lab 3 Test Driven Development

Aims The aim of this lab is to introduce pytest and the process of Test Driven Development, we will do this in the following way. Configure GitHub for labs. Use uv to set up a pytest Python environment.

Lab 4 OO in Python

Aims The aim of this lab is to investigate Object Orientation in python The principles of S.O.L.I.D Classes in Python OO Design principles SOLID Is A mnemonic to remember the first five principles of Object Oriented design

Lab 4 An Image Class

Aims The aim of this lab is to continue our exploration of TDD in python by developing an Image Class Developing a Simple Image Class Understand and Use python packages and uv Develop some simple Image algorithms.

Lab 5 Test Driven Development

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 Version Control Setup Test Setup Test Driven Design of a Simple RGBA class Storing Pixels It is common to store image pixel data using a single unsigned int32_t data type.

Lab 5 Diffusion Limited Aggregation

Aims The aim of this lab is to continue our exploration of TDD in C++ by developing a simulation of diffusion limited aggregation Introduction to DLA simulations Understanding Random number classes Creating Image Sequences Using Command Line Arguments Introduction to DLA Diffusion-limited aggregation (DLA) is the process whereby particles undergoing a random walk due to Brownian motion cluster together to form aggregates of such particles.

Computational Thinking

What is Computational Thinking? The idea of computational thinking is allow us to look at problems and determine the best way for a computer to solve this (and related problems).