haavard
@haavard
New Member
Joined: Feb 15, 2024
Topics: 16 / Replies: 100
Topic
Forum
Replies: 0
Views: 27
Reply
RE: Converting spline to mesh problem

This works though: fn createMesh2 baseLength cornerRadius = ( baseLength *= 2 baseLine = createBaseLine baseLength baseLine.pivot = [baseLeng…

9 years ago
Forum
Topic
Forum
Replies: 1
Views: 18
Reply
RE: The MCG Thread: Post Tools, Compounds and questions here!

I have only tested Ephere’s Lab but I assume mcg is in the same ballpark, so here are my experience from using a visual programming approach. As Denis…

10 years ago
Forum
Reply
RE: Dotnet > Encoding UTF8

asDotnetObject:on Neat! Wish I had seen this gem sooner

10 years ago
Forum
Reply
RE: Execute MaxScript from C# Advice

The ManagedServices.dll has to be loaded by an instance of max before you can use it. Calling ExecuteMaxscriptCommand from a main method, won’t work. …

10 years ago
Forum
Reply
RE: Grabbing The Material Preview

PolyTools3D: Images are flipped in Y axis. Haha, did not notice since all my materials were gray anyway

10 years ago
Forum
Reply
RE: Grabbing The Material Preview

I’m not following you here. I am using the lockbits-method. It is where I defined the format of the image as well.

10 years ago
Forum
Reply
RE: Grabbing The Material Preview

You’re right, denisT, thanks! This works: ( fn MtlPreview mtlIndex size = ( glob = (dotnetClass “Autodesk.Max.GlobalInterface”).Instance if gl…

10 years ago
Forum
Reply
RE: Grabbing The Material Preview

I tried to follow Klvnk’s lead and Im almost there. The PStamp object has an Image property which is a byte array with size of 3 * Height * Width of t…

10 years ago
Forum
Reply
RE: How to create a movable dialog while rendering?

oncire: but is my code working perfectly in your system? yup. Something is wrong if your .Instance variable always is null.

10 years ago
Forum
Reply
RE: How to create a movable dialog while rendering?

That is the same version I got here at work. You should not have to load the assembly, it is loaded at startup. Try pasting this into the listener: s…

10 years ago
Forum
Reply
RE: How to create a movable dialog while rendering?

I’m guessing your max version is too old. This is just a shot in the dark, but the Autodesk.Max.dll was called Interfaces.dll in older versions of max…

10 years ago
Forum
Reply
RE: How to create a movable dialog while rendering?

Put the it under the createDialog line: createdialog test width:250 height:60 pos:[35,120] style: #(#style_toolwindow) g = (dotnetclass “Autodesk.Ma…

10 years ago
Forum
Reply
RE: How to create a movable dialog while rendering?

Adding this to the script seems to work for me, no? g = (dotnetclass “Autodesk.Max.GlobalInterface”).Instance g.Coreinterface8.RegisterModelessRender…

10 years ago
Forum
Page 1 / 8