Message 1 of 1
Get OpenExr properties c++ sdk
Not applicable
06-27-2017
12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I create plugin using sdk c++(3ds max 2016).
Plugin collects info about file format properties.
I collected info about tif, jpg, tga. Now i have to collect info about openexr (needed properties is exrBitDepth, exrCompressionType, exrStorageType, exrImageType).
Could someone help with OpenExr?
I saw some solution with using MaxScript, but maybe can i do this with using c++ sdk only?
Example code for jpeg:
ClassEntry* ce = GetCOREInterface7()->GetDllDirectory()->ClassDir().FindClassEntry(BMM_IO_CLASS_ID, JpegID);
if ( ce )
{
ClassDesc* cd = ce->FullCD();
if ( cd )
{
IBitmapIO_Jpeg* ib = reinterpret_cast<IBitmapIO_Jpeg*>(cd->GetInterface(BMPIO_INTERFACE));
if ( ib )
{
#ifdef _UNICODE
parameters[_T("jpgQuality")] = boost::lexical_cast<std::wstring>(ib->GetQuality()).c_str();
parameters[_T("jpgSmoothing")] = boost::lexical_cast<std::wstring>(ib->GetSmoothing()).c_str();
#else
#endif
}
}
}
I need something similar.