SplitXRaven
03-14-2006, 07:43 PM
Hello.
A short introduction: I am a freshman architecture student at the New Jersey Iinstitute of Technology. I use 3dsMAX for all of my digital modeling. I am fairly proficient at modeling in the MAX environment, and I also have a working understanding of several object-oriented programming languages, including C/C++ and Java. The project I am working on now is a proposal for an ecological research center and library on Mexico's west coast. I decided to approach this problem in a conceptually unconventional way by using MAXScript to define form. I plan on converting a whole wealth of environmental conditions into numerical form and abstractly representing organisms with shapes, and using the time of the animation slider I will simulate the evolution of this digital "ecosystem" into the form of the final research complex. However, since there is a good deal I don't understand about using MAXScript yet, I am giving myself all the time I can spare in the next week to come up with a working simulation (of a much smaller scale than the final) that sufficiently proves to my professor (and myself) that I'm actually capable of accomplishing this. I have a few questions to ask right away, and I would like to use this thread for the next week or so as an FAQ for myself as I build a competent understanding with MAXScript.
1. How do you specify the color of an object at its creation using MXS? I tried to do it in the way you'd express other parameters at creation (i.e. boxA = box length:10...color:green), and while I don't get any syntax errors in the listener, the color of the shape still shows up randomly.
2. How do you specify the system of units that will be used in the scene using MXS?
3. How do you create a modifier on a shape with no initially-specified parameters (if possible)?
4. Can you reference external MAXScripts and have them run within a program flow? Or, perhaps to be more clear, can I make a call to a previously-written script and have it run in the middle of another script?
5. In the simulation I'm creating now, I start off with a single GeoSphere shape to represent a type of a plant (this is a much-oversimplified description of the situation, but I'll describe the scene like this for brevity; if you're interested in talking about architecture, email or IM me), and later on in the animation I want to introduce a box to represent a type of animal. The code I'm using now
animate on
(
at time 2400f (herbivoreA = box length:10 width:10 height:10)
)
creates the box primitive at the first frame. I'm not exactly sure why, since I specified the creation to occur at frame 2400. Please tell me what I'm doing wrong.
6. One more question should do it for now. I'm sure that if I was a bit more competent with animating in MAX I could have figured this one out on my own, but I can't. I intended for this code
animate on
(
at time 50 (plantA.twist.angle = 45; plantA.twist.axis = 2)
at time 100 (plantA.skew.amount = 10; plantA.skew.axis = 2)
)
to adjust the parameters for plantA's Twist modifier from the first frame until frame 50, and then I wanted the parameters for the Skew modifier to change from frame 51 to 100. Obviously it doesn't do that, as both modifiers are changed beginning at 0, but how would I do that? I'm sure it would probably involve a more in-depth manipulation of key frames, but I'm not exactly sure how to do that.
While I need answers to all these questions at some point, if you could just give me a little help based on what you know how to do, I would greatly appreciate it. These questions should seem pretty elementary to most people here, anyway. Also, since I'm a new user and my message needs to verified as "spam-free," I may have a good deal of time to experiment and figure out a few of these on my own. Thank you in advance for your help.
A short introduction: I am a freshman architecture student at the New Jersey Iinstitute of Technology. I use 3dsMAX for all of my digital modeling. I am fairly proficient at modeling in the MAX environment, and I also have a working understanding of several object-oriented programming languages, including C/C++ and Java. The project I am working on now is a proposal for an ecological research center and library on Mexico's west coast. I decided to approach this problem in a conceptually unconventional way by using MAXScript to define form. I plan on converting a whole wealth of environmental conditions into numerical form and abstractly representing organisms with shapes, and using the time of the animation slider I will simulate the evolution of this digital "ecosystem" into the form of the final research complex. However, since there is a good deal I don't understand about using MAXScript yet, I am giving myself all the time I can spare in the next week to come up with a working simulation (of a much smaller scale than the final) that sufficiently proves to my professor (and myself) that I'm actually capable of accomplishing this. I have a few questions to ask right away, and I would like to use this thread for the next week or so as an FAQ for myself as I build a competent understanding with MAXScript.
1. How do you specify the color of an object at its creation using MXS? I tried to do it in the way you'd express other parameters at creation (i.e. boxA = box length:10...color:green), and while I don't get any syntax errors in the listener, the color of the shape still shows up randomly.
2. How do you specify the system of units that will be used in the scene using MXS?
3. How do you create a modifier on a shape with no initially-specified parameters (if possible)?
4. Can you reference external MAXScripts and have them run within a program flow? Or, perhaps to be more clear, can I make a call to a previously-written script and have it run in the middle of another script?
5. In the simulation I'm creating now, I start off with a single GeoSphere shape to represent a type of a plant (this is a much-oversimplified description of the situation, but I'll describe the scene like this for brevity; if you're interested in talking about architecture, email or IM me), and later on in the animation I want to introduce a box to represent a type of animal. The code I'm using now
animate on
(
at time 2400f (herbivoreA = box length:10 width:10 height:10)
)
creates the box primitive at the first frame. I'm not exactly sure why, since I specified the creation to occur at frame 2400. Please tell me what I'm doing wrong.
6. One more question should do it for now. I'm sure that if I was a bit more competent with animating in MAX I could have figured this one out on my own, but I can't. I intended for this code
animate on
(
at time 50 (plantA.twist.angle = 45; plantA.twist.axis = 2)
at time 100 (plantA.skew.amount = 10; plantA.skew.axis = 2)
)
to adjust the parameters for plantA's Twist modifier from the first frame until frame 50, and then I wanted the parameters for the Skew modifier to change from frame 51 to 100. Obviously it doesn't do that, as both modifiers are changed beginning at 0, but how would I do that? I'm sure it would probably involve a more in-depth manipulation of key frames, but I'm not exactly sure how to do that.
While I need answers to all these questions at some point, if you could just give me a little help based on what you know how to do, I would greatly appreciate it. These questions should seem pretty elementary to most people here, anyway. Also, since I'm a new user and my message needs to verified as "spam-free," I may have a good deal of time to experiment and figure out a few of these on my own. Thank you in advance for your help.
