I'm relatively new to maxscript and I just made a script that I run via "scripting/run script...". Conceptually, this script takes different parameters, such as numbers and strings, but because of my limited knowledge, I'm just hard-coding them in the script and manually change them every time I need something different.
What's the recommended way to parameterize my script? I was wondering if there's a way to call 3ds max from the command line such that as soon it starts, it runs my script with different parameters specified via command line arguments.
Replies
- function AddVals val1 val2 =
- (
- newVal = val1 + Val2
- print newVal
- )
Then to run it you would can type the following into the listener.- AddVals 1 2
In the MaxScript help doc look up Function Definitions and Startup Scripts.