2010

Table Of Contents
Using the edit flag in Python . . . . . . . . . . . . . . . . . . . 711
Communicating between Python and MEL . . . . . . . . . . . . 713
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 715
Chapter 14
Assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 717
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 717
Preparing for the lessons . . . . . . . . . . . . . . . . . . . . . . . . . 717
Lesson 1: Setting up an asset . . . . . . . . . . . . . . . . . . . . . . . 718
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 718
Lesson setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 718
Creating a container . . . . . . . . . . . . . . . . . . . . . . . . 719
Publishing attributes . . . . . . . . . . . . . . . . . . . . . . . . 720
Publishing multiple attributes to a single published name . . . . 722
Open the second scene for the lesson . . . . . . . . . . . . . . . 725
Creating a template . . . . . . . . . . . . . . . . . . . . . . . . 725
Creating Views . . . . . . . . . . . . . . . . . . . . . . . . . . . 727
Assigning a custom icon . . . . . . . . . . . . . . . . . . . . . . 730
Setting Black Box mode . . . . . . . . . . . . . . . . . . . . . . 731
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 732
Lesson 2: Using assets in a scene . . . . . . . . . . . . . . . . . . . . . 732
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 732
Lesson setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733
Importing assets to dress a scene . . . . . . . . . . . . . . . . . 734
Assigning an existing template to a container . . . . . . . . . . 735
Binding attributes . . . . . . . . . . . . . . . . . . . . . . . . . 738
Swapping assets . . . . . . . . . . . . . . . . . . . . . . . . . . 740
Referencing assets in a scene . . . . . . . . . . . . . . . . . . . . 742
Creating a proxy container . . . . . . . . . . . . . . . . . . . . 745
Modifying a proxy container . . . . . . . . . . . . . . . . . . . 747
Dressing the rest of the scene with assets . . . . . . . . . . . . . 749
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 751
Chapter 15
Hair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753
About hair simulation . . . . . . . . . . . . . . . . . . . . . . . . . . 755
Preparing for the lessons . . . . . . . . . . . . . . . . . . . . . . . . . 755
Lesson 1: Creating a basic hairstyle . . . . . . . . . . . . . . . . . . . 756
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756
Lesson setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757
Creating hair on a surface . . . . . . . . . . . . . . . . . . . . . 758
Styling the hair . . . . . . . . . . . . . . . . . . . . . . . . . . . 762
Setting up hair collisions . . . . . . . . . . . . . . . . . . . . . 767
Rendering the hair . . . . . . . . . . . . . . . . . . . . . . . . . 771
Modifying hair attributes . . . . . . . . . . . . . . . . . . . . . 772
Setting up shadowing on hair . . . . . . . . . . . . . . . . . . . 774
Contents | xiii