|
Week One: Introduction to MAXScript
This week will focus on the basics of MAXScript. This involves working with mathematical expressions, variables, commands, functions and ways of structuring scripts using code blocks and comments. Writing scripts in a structured manner is essential if you (or other people) need to edit your scripts afterwards. Students will be assigned to write a simple script using the things learned during this week.
Week Two: Variables
MAXScript uses so-called “type-free variables” which means a variable can hold any type of value without prior declaration. This enables you to write your scripts very quickly, but can also cause problems when not used properly. During this week, Martijn will go over the various types of variables available in MAXScript.
Week Three: Accessing Scene Data One of the main advantages of MAXScript is that you can create and/or modify scene objects 'en masse' with only a few lines of code. During this week you will learn how to access objects and their properties using the dot-notation.
Week Four: Code Blocks
A code block is a piece of script that can be executed as a unit, such as an if-expression, a class definition or a function definition. Code blocks are usually set off with whitespace and comments that describe the block. Indentation is used to easily distinguish pieces of code and to see what part of the script they ‘belong’ to. During this week, Martijn will go over the commonly used code blocks such as if/then-expressions, case/of expressions and for-loops.
Week Five: Creating a UI MAXScript has a large number of built-in UI controls (such as a button, checkbox, colorpicker etc) that you can use in your rollouts/dialogs. During this week we will create a UI for a script written in week 4.
Week Six / Seven / Eight: Putting it all Together
Weeks 6 through 8 involve developing a scripted tool from scratch. Students will brainstorm ideas and work collaboratively or individually to create the agreed upon script.
Week Six: Planning
Improvisation during programming is great, however if you want a streamlined script that is easy to update, and is simple to code, the best tool is a plan. Having outlined the structure of your code beforehand often makes the actual programming task a lot easier. This obviously depends on the size and complexity of your script but it often helps you identify any pitfalls without having written down a single line of code.
Week Seven: Scripting
On to the fun part!
Week Eight: Refining the Script / Questions
The last week of the course will be spent peer reviewing the scripts created by the students, and making any final adjustments. Students may also use this time to clarify any questions they may have regarding MAXScript.
|
Level of Ability
Working knowledge of 3dsmax, and the ability to type and think constructively.
Examples of Work
Some simple scripts to allow the Instructor to assess overall levels of compentency and to illustrate how the students lay out a script.
Software/hardware Requirements
3dsmax. |