Notifications
Clear all

[Closed] maxscript get name of PC

How would I achieve getting the name of the PC through maxscript?

6 Replies

nvm

I got it.

sysInfo.username
sysInfo.computername

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#.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

LOL. i hope it’s a joke.

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.