Sunday, October 10, 2010

Creating a material library from a scene

Sometime I need to use exact same materials from a previous work and this scrip helps that kind of situation. It creates a material library from a scene materials.

for mat in scenematerials do append currentmateriallibrary mat

After evaluate all, a temporary material library shows up in a material editor. I found this script from a cgarchitect form and a comment from Eric.

If you want to create a tool bar, just you need to add macro script for it.

Somethink like this,

macroScript Library categry:"TempMaterial"

(

for mat in scenematerials do append currentmateriallibrary mat

)

You will find it under Customize User Interface > Toolbars > Main UI, Category - TempMaterial.

No comments:

Post a Comment