Functions

Bitmap Filename Resolution Functions

Functions

BMMExport int  BMMGetFullFilename (BitmapInfo *bi)
  These functions search the system for a bitmap.
BMMExport BOOL  BMMGetFullFilename (const MCHAR *namein, MCHAR *nameout)

Function Documentation

BMMExport int BMMGetFullFilename ( BitmapInfo bi )

These functions search the system for a bitmap.

The input parameter contains the name of the bitmap that is searched for (bi->Name() or namein). If the filename from the input is incorrect, and the bitmap is found somewhere else, these functions set the output (bi->Name() or nameout) with the correct path.

The order of the search is as follows:

  • The full UNC path/filename indicated in the input object.
  • The path where the current 3ds max file was loaded from.
  • The directory tree under the directory where the current Max files was loaded.
  • The Map path.
    Returns:
    TRUE if the file was found; otherwise FALSE.
BMMExport BOOL BMMGetFullFilename ( const MCHAR *  namein,
MCHAR *  nameout 
)