My question is how to read and use WINDOWS system variable in max script ?
Thanks for any help.
Forum topic · General Scripting
System variables question
By tboy · 2008-06-20
Description
Comments (5)
KristeVasqu · 2020-05-23
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 · 2008-07-07
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 · 2008-07-02
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 · 2008-06-30
Thank you johnl, but this is far beyond my skills. Isn't it possible just to read (get) the value..?
johnl · 2008-06-26
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?