Get OpenExr properties c++ sdk

Get OpenExr properties c++ sdk

Anonymous
Not applicable
372 Views
0 Replies
Message 1 of 1

Get OpenExr properties c++ sdk

Anonymous
Not applicable

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.

 

0 Likes
373 Views
0 Replies
Replies (0)