Notifications
Clear all

[Closed] Open Material Library in Material/Map browser

there is
loadMaterialLibrary (((GetDir #matlib) as string ) + “\mtls_lib.mat”)

and
loadTempMaterialLibrary (((GetDir #matlib) as string ) + “\mtls_lib.mat”)

but no one of them opens the library in mat/map browser. The second adds the mats from lib to temp lib, but I don’t want to use temp lib. I want to open like usual you do manually, just by script.

May be I’m blind, but can’t figure out how to do it! Please Help!!!

3 Replies

try

 sme.Open() 
lib = loadMaterialLibrary (getfiles (getdir #maxroot + @"\materiallibraries\*.mat"))[1]
mtlBrowser.browseFrom #mtlLibrary
materialBrowseDlg()

Denis, Thank you soo much! But it still opens the library in Temporary Library…
And how to open Mat/map browser window not with modal on?