I asked about this issue at the appathon and they were able to find a solution. As suspected, it was the structure packing that were the culprit. Here…
I never tried loading the assembly in max until now. From debugging I found out it is the ReadMultiple method from IPropertyStorage that gets some inv…
Got it working now. Adding 87 (3 * 29) to the pb value seems to do the trick, so I am guessing maybe the size of the struct is wrong. This is what I …
This will fix the colors: unsafe { byte* ptr = (byte*)pb; for (int y = 0; y < packedMeta….
If you have visual studio sdk installed you can find it in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\Microsoft…
Nice, thanks. Here is the c++ method that I try to mimic somewhat: HBITMAP GetPreviewBitmapW(const wchar_t* fileName) { HBITMAP hBitmap = nullptr;…
One thing you can try is to set breakpoints in your code for example at the constructor, build the plugin in debug mode and copy the pluginname/bin/de…
It is in the docs for 2014, marked as new: Link
You are doing integer division in your maxscript snippet. E.g., 15/256 = 0.05859375 in javascript (according to Ideone.com) 15/256 = 0 in maxscript. S…
I followed this talk and implemented it in C#/XNA. The solver ended up being around 100 lines of code.
I only have max2013 installed now so I can only compile the plugin for that version. Also for earlier versions you need to download the ephere .net wr…
I used NppPlugin.Net together with the 3dsmax .Net wrapper to create a notepad++ plugin that uses remoting to evaluate scripts. The downside is that …
It is a macroscript, but I think that is not the point since I can load all the assemblies and use their methods in other parts of the script. It is j…
I think I found the real issue why I could not deserialize the file in the first place. If I place the assembly in the root folder of max it deseriali…