[Closed] maxscript get name of PC
Yep. I actually used MXS with my C# UI to get that info since it was easier to do in Mxs than I could find in C#.
I found a simple way to do it, but it wasn’t giving me the actual PC Name. It kept giving me something with NT in the name I think.
It wasn’t my actual computer name. I tried a few methods, but all did the same, so I just used MXS since I was communicating with max anyways.
Hi,
Have you tried using System.Environment.MachineName in C#?
(or in mxs: (dotNetClass “System.Environment”).MachineName )
Cheers,
o
I’m pretty posative I tried System.Environment.MachineName in C#.
But like I said, it kept returning something with NT in the name, and no where did it even say my actual PC name… But doesn’t matter, i have MXS setup with it already.