haavard
@haavard
New Member
Joined: Feb 15, 2024
Topics: 16 / Replies: 100
Reply
RE: Getting max thumbnail issue.

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…

11 years ago
Forum
Reply
RE: Getting max thumbnail issue.

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…

11 years ago
Forum
Reply
RE: Getting max thumbnail issue.

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 …

11 years ago
Forum
Reply
RE: Getting max thumbnail issue.

This will fix the colors: unsafe { byte* ptr = (byte*)pb; for (int y = 0; y < packedMeta….

11 years ago
Forum
Reply
RE: Getting max thumbnail issue.

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…

11 years ago
Forum
Reply
RE: Getting max thumbnail issue.

Nice, thanks. Here is the c++ method that I try to mimic somewhat: HBITMAP GetPreviewBitmapW(const wchar_t* fileName) { HBITMAP hBitmap = nullptr;…

11 years ago
Forum
Topic
Forum
Replies: 31
Views: 83
Reply
RE: c# transform controller

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…

11 years ago
Forum
Reply
RE: Did you know that?

It is in the docs for 2014, marked as new: Link

12 years ago
Forum
Reply
RE: Help converting Geoposition to Cartesian position

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…

12 years ago
Forum
Reply
RE: Maxscript 2D Fluid Sim

I followed this talk and implemented it in C#/XNA. The solver ended up being around 100 lines of code.

12 years ago
Forum
Reply
RE: Maxscript editor or other IDE?

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…

12 years ago
Forum
Reply
RE: Maxscript editor or other IDE?

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 …

12 years ago
Forum
Reply
RE: Assembly independent binary de-/serialization

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…

12 years ago
Forum
Reply
RE: Assembly independent binary de-/serialization

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…

12 years ago
Forum
Page 4 / 8