============================== ``grail.data.material`` Module ============================== .. include:: ..\..\version.h .. contents:: Table of Contents :backlinks: top -------- Overview -------- 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. -------- Function -------- :df:`get_vbm_code(project_path, material_name)` Returns the VBM code with the given :a:`material_name` for the supplied :a:`project_path`. The :a:`project_path` should point to the directory containing the _msresource directory, and the :a:`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. :df:`get_model_code(project_path, material_name)` Returns the model code with the given :a:`material_name` for the supplied :a:`project_path`. The :a:`project_path` should point to the directory containing the _msresource directory, and the :a:`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.