You can work with 3DCoat materials via scripts.
Here's the list of three groups of functions:
- work with materials in scene
- work with objects in scene
- work with object's US-sets
What you may do with them?
DEPRECATED int AddMaterial( string );
DEPRECATED int GetMaterialsCount()
DEPRECATED string GetMaterialName( int )
DEPRECATED int GetMaterialIndex( string );
DEPRECATED void RenameMaterial( int index, string );
DEPRECATED void DeleteMaterial( int index )
DEPRECATED void LockMaterial( int index, bool )
DEPRECATED void SetMaterialVisibility( int index, bool )
DEPRECATED int GetObjectsCount()
DEPRECATED string GetObjectName( int index )
DEPRECATED void RenameObject( int index, string );
DEPRECATED void DeleteObject( int index )
DEPRECATED void LockObject( int index, bool )
DEPRECATED void SetObjectVisibility( int index, bool )
DEPRECATED int GetFacesCount();
DEPRECATED int GetUVSetsCount();
DEPRECATED string GetUVSetName( int index );
DEPRECATED void RenameUVSet( int index, string );
DEPRECATED void SelectAllFacesInCurrentUVSet();
DEPRECATED void SelectAllFacesInCurrentUVSetAndGroup();
DEPRECATED void SelectAllVisibleFaces();
Also check out these functions:
string getCommandLine();
DEPRECATED void SetGlobalVar(string& Name,string& Value)
DEPRECATED string GetGlobalVar (string& Name)
DEPRECATED string GetSceneFileName()
DEPRECATED void SetSceneFileName(string& Name)
void HighlightUIElement(string &ID, float time);
DEPRECATED void back(int steps=1);
DEPRECATED void open(string &Path);
DEPRECATED void ppp(string &path);
DEPRECATED void mv(string &path);
DEPRECATED void ptex(string &path);
DEPRECATED void imagemesh();
DEPRECATED void refmesh(string &path);
DEPRECATED void vertexpaint(string &path);
DEPRECATED void autopo(string &path);
DEPRECATED void repair(string &id);
DEPRECATED void bass();
DEPRECATED void undercut();
DEPRECATED void activate(string &id);
DEPRECATED void retopo();
DEPRECATED void retopopen();
DEPRECATED void ToRoom(string &name);
DEPRECATED bool IsInRoom(string &name);
DEPRECATED void AddNewVolume(string &name);
DEPRECATED void uv();
DEPRECATED void vox();
DEPRECATED void sphere(float x,float y,float z,float r,int mode);
DEPRECATED void cube(float x,float y,float z,float sizex,float sizey,float sizez,int mode);
DEPRECATED void surf();
DEPRECATED void cursurf();
DEPRECATED void voxelize();
DEPRECATED void mergeopt(string &opt);
mergeopt( "[voxelize=true][as_skin=true][skin=4.5]" );
DEPRECATED void merge(string &model);
DEPRECATED void prim(string &id);
DEPRECATED void apply();
DEPRECATED void ApplyAndKeepScale();
DEPRECATED void mapply();
DEPRECATED void recent3b();
DEPRECATED void Log(string &line);
int rand(int min,int max);
float randF(float min,float max);
void seed(int val);
DEPRECATED void ProgressBar(const string& message,int pos);
DEPRECATED void SetOrthoMode(bool value);