System variables question

My question is how to read and use WINDOWS system variable in max script ?
Thanks for any help.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
KristeVasqu's picture

System variables are

System variables are controlled for the mid of the modules for humans. The strength of the variable and custom essays services is found for the usefulness. The elevation is done for the types of clues for the portals for the systems.

tboy's picture

Thank you Ofel. This days I

Thank you Ofel.

This days I installed max2009 for tests. Here is a quote from MaxScript Help - Whats new topic (if somebody is interested):

Interaction With The Operating System
.................................

System Tools

Added new methods systemTools.getEnvVariable()and systools.setEnvVariable() for getting and setting values from/to the Windows Environment variables.

Unfortunately my question was for Max/VIZ 3 :).....

Ofer Zelichover's picture

Hi, If you're using 3ds Max

Hi,

If you're using 3ds Max 9 or later you can use this function:

fn getEnvVar var =
(
var = var as string
dotNet.loadAssembly "System"   
local env = dotNetClass "system.Environment"
env.GetEnvironmentVariable var
)

Cheers,

o

tboy's picture

Thank you johnl, but this is

Thank you johnl, but this is far beyond my skills. Isn't it possible just to read (get) the value..?

johnl's picture

I have little clue on this

I have little clue on this but I know you have to use windows system stuff in max SDK.
Possibly you have to write a plugin that imports with it into max some link to windows variables?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.