Your Ad Here

Managing Material Libraries

Material Libraries are common containers for all of the materials in a scene. Each time you create a material, it’s added to a material library. Although all of the materials in a scene belong to a library, they are used only by the objects to which they are assigned.

Storing materials this way makes it easy to share a single material between several objects. It also allows you to access and edit all of the materials in a scene from a single place. Furthermore, because materials belong to libraries and not to individual objects, you can delete an object from the scene, but keep its material for later use. If you no longer want to use a material, you can simply delete it once, regardless of the number of objects to which it’s assigned.

 

When you open a scene created in previous versions of XSI, all of the materials in the scene are placed in the default material library.

Viewing Your Material Libraries

You can view a scene’s material libraries using the material manager as described in The Material Manager. Alter5natively, you can open an explorer and set its scope to Materials.

 

 

You can also view your material libraries by setting the explorer’s scope to Sources/Clips, and expanding the Sources node. The Material node under the Sources is the same one that appears at the top of the hierarchy when the explorer’s scope is set to Materials.

The Default Material Library

By default, every new scene has a material library called DefaultLib. Initially, the library contains only the default scene material (see [here]), but all new materials that you create in the scene are added to the default library until you create or import a new library and set it as the current library.

 

• For more information about creating new material libraries, see Creating New Material Libraries.

• For more information about importing material libraries, see Importing and Exporting Material Libraries.

• For more information about setting the current library, see Setting the Current Library.

Storing Libraries: Internal or External

By default, material libraries are stored internally as part of the scene. However, you can store them externally, as dotXSI binary or text files, which allows you to share them between multiple scenes.

Internal Libraries

By default, every new material library is stored internally. Storing a material library internally means that it’s part of the scene and has full access to all scene data. This allows you to do things like write expressions that reference particular materials or link a material’s parameter’s to an object’s parameters.

 

Even if a material is stored internally, you can still export it if you wish to share it. Just remember that the exported version is not linked to the scene and won’t reflect changes to either the library or its materials.

For more information about exporting material libraries, see Importing and Exporting Material Libraries.

External Libraries

Storing material libraries externally allows you to share them between scenes within a project or between projects. By default, external libraries are stored in the MatLib folder, which is part of the project structure; however, you can store external material libraries anywhere.

 

Projects created in previous versions of XSI may not have the MatLib folder. If this is the case, one is created the first time you save a scene with a material library that’s marked for external storage.

Whether your external material libraries are binary dotXSI files or text dotXSI files is strictly a matter of preference, though the text format has the advantage of being human-readable. This allows you to manually edit a material library in a text editor without opening XSI.

Once a library is stored externally, you can import it into other scenes. For more information about importing material libraries, see Importing and Exporting Material Libraries.

To change a material librarys storage options

1. Open an explorer and set the scope to Materials.

2. Click the icon of the material library whose storage options you wish to change. The library’s property editor opens.

3. Set the Storage parameter to Internal, External (dotXSI binary) or External (dotXSI text).

4. If you chose external storage in step 3, then choose a file name and path for the library.

The library is now stored externally, but the file is not created until you save the scene.

Setting the Current Library

Unless you explicitly create a new material in another library (see Creating Blank Materials), the current library is the one to which all newly created materials are added. For example, if you create a material using any of the commands in the Render toolbar’s Get > Material menu (see [here]), it is added to the current library.

 

 

Referenced libraries cannot be set as the default library. For more information about importing libraries by reference, see Importing Material Libraries by Reference.

To set the current library

1. Open an explorer and set the scope to Materials.

2. Expand the List node (under the Materials node) to see all of the material libraries in your scene.

3. Right-click the library that you want to set as the current library and choose Set as Current Library from the menu.

Creating New Material Libraries

You can create as many material libraries as you need. This is useful for categorizing the different types of materials in your scene. For example, you might want to keep separate libraries different types of materials (wood, metal, rock, skin, scales, and so on), or create a material library for each character in your scene.

To create a new material library

1. Open an explorer and set the scope to Materials.

2. Right-click the Materials node or the List node and choose Create New Material Library from the menu.

The new library appears in the list and automatically becomes the current library.

Importing and Exporting Material Libraries

You can import material libraries, directly or by reference, and export them. These tasks are described in the following sections.

Importing Material Libraries

You can import any externally stored material library into a scene. By default, the imported library is stored internally as part of the scene (Storing Libraries: Internal or External). If you would rather import the library without adding it to the scene, you can import it by reference as described in the next section, Importing Material Libraries by Reference.

To import a material library

1. Open an explorer and set the scope to Materials.

2. Right-click the Container node or the List node and choose Import Material Library from the menu.

3. From the browser that opens, choose a material library to import and click OK.

The material library is imported into the scene and becomes a part of it. By default, it is stored internally.

Importing Material Libraries by Reference

Referenced libraries are externally stored material libraries that you import into a scene by reference rather than adding them to the scene. Referenced libraries can belong to another scene, or can be libraries that you’ve exported to a storage directory. When you make changes to a referenced library, those changes are reflected in any scene into which you’ve imported the library.

For example, you could create a master scene that an artist uses to create and test materials. The material libraries in this scene can then be stored externally and imported into several other scenes as referenced libraries. Those libraries’ materials can then be used by other artists, but there’s no danger that they’ll be accidentally altered or deleted since changes can only be made in the master scene.

When you import a material library by reference, you’ll notice that the library and all of its materials are locked such that you can apply them to scene objects, but you cannot modify them (see Locking and Tagging Scene Elements in the Data Management guide for more information).

 

 

If changes have been made to a referenced library that you’ve imported into a scene, the library is not updated until you close the scene and reopen it.

To import a referenced library

1. Open an explorer and set the scope to Materials.

2. Right-click the Materials node or the List node and choose Import Referenced Material Library from the menu.

3. From the browser that opens, choose a material library to import and click OK.

The material library is imported into the scene. The library and all of its materials are locked.

Exporting Material Libraries

You can export material libraries as dotXSI text files. Exporting a library is not the same as storing it externally. Internal libraries that you export continue to be stored internally until you specify otherwise.

To export a material library

1. Open an explorer and set the scope to Materials.

2. Do one of the following:

- Right-click the icon of the material library that you want to export and choose Export Material Library from the menu.

or

- Click the icon of the material library that you want to export to open its property editor. From the property editor, click the Export Library button.

3. From the browser that opens, specify a name and path for the exported library and click OK.

Renaming Material Libraries

You can rename material libraries as you would any other scene element.

To rename a material library

1. Open an explorer and set the scope to Materials.

2. Do one of the following:

- Right-click the material library you wish to rename and choose Rename from the menu, or press F2, and enter the new name.

or

- Click the library’s icon to open its property editor and enter the new name in the Name text box.

 

You can also rename a material library from its property editor.

Deleting Material Libraries

You can delete material libraries from the explorer as you would any other scene element. If you delete a library that’s stored externally, it is not deleted from the project, but simply removed from the scene.

To delete a material library

1. Open an explorer and set the scope to Materials.

2. Select the library that you want to delete and do one of the following:

- Press Delete.

or

- Right-click the library and choose Delete from the menu.



SOFTIMAGE|XSI v.6.01     

Return to Softimage XSI Index


Your Ad Here