3ds Max Programming Materials Category()

  3dsmax, c++, material-ui, sdk, shader

it is a bit strange but no matter how many times I tried all materials and maps that I create will appear in the General category material.
That’s my code for the material category.

const TCHAR* Category() { return NULL; }//_T(""); }//GetString(IDS_CATEGORY); }
const MCHAR* GetEntryName() const { return LuxMixMapFriendlyClassName; } //NULL; }
const MCHAR* GetEntryCategory() const {
    HINSTANCE hInst = GetModuleHandle(_T("sme.gup"));
    if (hInst) {
        //Extract a resource from the calling module's string table.
        static MSTR category(MaxSDK::GetResourceStringAsMSTR(hInst,
            IDS_3DSMAX_SME_MATERIALS_CATLABEL).Append(_T("Lux")));
        return category.data();
    }
    else
    {
        return _T("MapsLux");
    }
}
enter code here

Source: Windows Questions C++

LEAVE A COMMENT