|
| Dub's Maxscript Tutorial Index |
Garp |
Try this:
for s in $Sphere* do ( unhide s render vfb:false outputFile:("E:/Practice/MaxScript/render_" + s.name + ".jpg") hide s )
In your script you specify the frame to render but you're not rendering an animation. Hence the files are not automatically numbered. I used the sphere's name to get a unique name.
 "Basically, a computer is a very fast moron. It does exactly what you tell it to do. And that can be most humbling." Bjarne Stroustrup
read 1743 times 11/9/2009 9:09:02 AM (last edit: 11/9/2009 9:17:20 AM)
|
vishesh |
hey Garp, your script worked perfectly fine. very nice !!! Thanks for your help.
MaxScripting is so much fun. though if one gets stuck, it becomes irritated :)
"Passion is the flame that burns forever."
read 1721 times 11/9/2009 10:28:12 AM (last edit: 11/9/2009 10:28:12 AM)
|
Garp |
You're welcome.
"MaxScripting is so much fun. though if one gets stuck, it becomes irritated :) "
Agreed. When Dub releases his tutorial about using the reference, that'll get a lot of people started.
 "Basically, a computer is a very fast moron. It does exactly what you tell it to do. And that can be most humbling." Bjarne Stroustrup
read 1711 times 11/9/2009 10:38:15 AM (last edit: 11/9/2009 10:38:15 AM)
|
advance-software |
>though if one gets stuck, it becomes irritating
That's programming in general. Writing code isn't so hard. Figuring out why it doesn't do what you want it to can be much harder. When you get stuck, use a process of elimination to isolate the problem to its root cause.
read 1704 times 11/9/2009 10:51:38 AM (last edit: 11/9/2009 11:14:33 AM)
|
vishesh |
Yep Garp .... i am eagerly waiting for that tutorial. I too didn't get much of MaxScript reference stuff.
Advance..... yeah thats true. i use commands like Print , messageBox for debugging.... these helps a lot.
"Passion is the flame that burns forever."
read 1659 times 11/10/2009 7:41:24 AM (last edit: 11/10/2009 7:41:24 AM)
|
|
|