Week 8 - Activities


1. Cube Class!

Here I created a Python class called Cube so it can be used as a template to create, move, rotate, freeze, modify and select Cube objects in Maya.


Trying to get my head around classes took longer than I expected and I needed a lot of help.

2.Using built-in functionality!

Here I inserted comments to explain what the script does:


3. Customising UIs!

Here I modified the script to:

a) change the number of items displayed on the window;

b) change the message printed each time the user clicks on an item, so that the counting of items is bottom up rather than top-down;

c) implement two separate windows with different number of buttons each.

d) implement a number of separate windows as specified by asking the user.

Leave a comment

Log in with itch.io to leave a comment.