Max file OLE container

Max file OLE container

Anonymous
Not applicable
556 Views
0 Replies
Message 1 of 1

Max file OLE container

Anonymous
Not applicable

Hello

I am very new to C# programming and i am trying to make a library to work with .max files outside the 3dsmax.

What i am first interested in is that to be able to get and to repath selected assets in MAX file.

Getting assets is pretty easy and i've managed to complete that part.

Now the second part is pretty hard for me - repathing of selected assets.

I've found the C++ code from SDK of Max , you can find it here : 

http://pastebin.com/LqAGSX7B

what i need is some help to convert that to C# code and some explanation about how it works...

Till i've found this code i was thinking that algorhitm should be something like this :

 

1. finding a string with a path in .max file stream
2. make an “A” byte array , in which we save found path from stream with all necessary delimiters and “00″ symbols between
4. in main stream “B” byte array with all of the assets we find this “A” array.
5. we convert new string to byte array “C” with all the delimiters and “00″ chars between
6. we cut A-B and insert C from starting index of B in A

 

but as i ran through the code provided in C++ i've figured out that max SDK is being used there also , to convert assets and to write them down into the file, but C++ is almost chinese grammar for me so it is really hard for me to resolve what's the thing there...

Oh and to work with Max file i use OpenMCDF library , it allows to work with OLE pretty easy.

Thanks a lot in advance,

Oleg.

 

0 Likes
557 Views
0 Replies
Replies (0)