Posted December 08, 2022 by up2122682
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.
Here I inserted comments to explain what the script does:
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.