Creating tabs in the Material Manager

The new AddUserTab command allows you to create new custom favorites tabs in the Material Manager. To use AddUserTab, you pass in a material and a comma-separated list of tab names.

var oActiveScene = Application.ActiveProject.ActiveScene;
var oMatLib = oActiveScene.ActiveMaterialLibrary;
var oMat = oMatLib.CreateMaterial( "Phong", "MyPhong" );

AddUserTab( oMat, "My Faves" );

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s