Provides access to material data in such a way that isolates you from running within a Grail Embedded environment inside MS3D or from the command line.
get_vbm_code(project_path, material_name)
Returns the VBM code with the given material_name for the supplied project_path.
The project_path should point to the directory containing the _msresource directory, and the material_name should be the material you wish to inspect.
This takes care to load the material correctly if you are within the project, in MS3D or not.
get_model_code(project_path, material_name)
Returns the model code with the given material_name for the supplied project_path.
The project_path should point to the directory containing the _msresource directory, and the material_name should be the material you wish to inspect.
This takes care to load the material correctly if you are within the project, in MS3D or not.