Week 2 - Class 1

Today we are going to take a quick look at changing the appearance of your Max patch.


Worrying about the look of your patch's UI might seem of secondary importance, but since it is the primary way that you are interfacing with Max, you might want to pay closer attention. There are two ways to change an object's appearance: as a style, and as a patcher style template.

Working on an individual object's style is easy: you click on an object and see the vaious appearance values that you can change:


In the case of a toggle button, there are color options for the background, the foreground (checked) and the foreground (unchecked). Click on the color aspect you want to change, then select from a palette, or choose the color picker to have even more control.

One important thing to note: the style you are creating doesn't really exist anywhere other than in this single object. To create something that can be used in other places, you need to:

It is actually the process of storing it in the library that will make it available within other patchers. Otherwise, the style - even if you 'save' it - will only exist within the context of this single patch.

In order to work on a patcher-wide style, you have to create a patcher style template. To do this, you need to make sure you can see a lot of content, but that none of it is selected. This will display a triangle-p in the format bar:


At this point, you can change all of the 'general use' color attributes that apply to most (but not all) of the objects in a patch, and you will find that everything changes with it. How can this be useful for your patch's UI? Well, imagine that you are creating a patch for performance. You can create one set of colors for daytime use (maybe dark colors on a light background) and another style template for night work (generally light colors on a dark background). Now, you can switch between appearances without having to make any changes in your code!


In-class Activity:


Week 2 - Class 2

Today is pretty simple: you are going to work on the installation for Project #1 - except for Jayne, who will present during this class period.



Return to the class index.
Last update: 03/29/2016