Example Asset Plug-in
PyMockAsset takes information on show, shot, asset, and version, and uses a browser customized with fields to hold that data. All of the images used in this section show the PyMockAsset plug-in.
The PyMockAsset plug-in searches for assets under a file location specified in an environment variable called MOCK_ASSET_DIR, for example:
MOCK_ASSET_DIR=/tmp/MockDB
The entries in the selection menus in the PyMockAsset asset browser are determined by the folder structure under the location specified in the MOCK_ASSET_DIR variable.
For example, the asset browser shown above is generated from the folder structure below.
Note: If MOCK_ASSET_DIR is not set on your system, PyMockAsset defaults to searching Python's tempfile.tempdir directory
It varies on the platform, see https://docs.python.org/2/library/tempfile.html#tempfile.tempdir.