| 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.

read 5164 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 5142 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.

read 5132 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 5125 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 5080 times 11/10/2009 7:41:24 AM (last edit: 11/10/2009 7:41:24 AM)
|
tanchinchee87 |
NEED HELP==> Hi, i am kinda new to 3ds max and I m currently working on to animate the movement of a pipe. Well, I have made the pipe by creating a cylinder then key in the position of the points(450 points) using the ffd method which I dun think is very effective. The problem now is that I have the coordinates in excel file and I wonder if there is a way for me to translate the points into max? I still need to animate a few more movement of the pipe and i would appreciate if i dun not have to key in the coordinate manually because it is taking like forever...thanks!!!!
read 3024 times 5/6/2010 5:27:39 AM (last edit: 5/6/2010 5:27:39 AM)
|
Dub. |
eek.
I had better get on it.
As soon as this job is finished.
read 3007 times 5/7/2010 8:05:58 AM (last edit: 5/7/2010 8:05:58 AM)
|
reeves1984 |
Am happy to bump this while I use it for reference!
--
 www.LemonGood.tv
www.simonreeves.com - freelance artist twitter
read 641 times 10/27/2011 2:14:46 PM (last edit: 10/27/2011 2:14:46 PM)
|
Mr.Burns |
Just thought I'd share a little macro I made for removing all wire connections of all selected objects :)
macroScript DeWirer category:"Tools" toolTip:"De-Wirer"
(
function DeepSub TopLevel = ( if TopLevel.numSubs > 0 then for i = 1 to TopLevel.numSubs do DeepSub TopLevel[i] else if classOf TopLevel.controller == Float_Wire then paramWire.disconnect TopLevel.controller )
if selection.count > 0 then for i in selection do ( DeepSub i if i.material != undefined then DeepSub i.material )
else messageBox "No object selected." title:"Error" )
I'm sure there's a better or more elegant way to do this (I'm looking at you, Garp...), but hopefully somebody will find this helpful.
read 308 times 12/21/2011 5:52:37 PM (last edit: 12/21/2011 6:33:48 PM)
|
mrgrotey |
I want your babies :)
read 297 times 12/21/2011 6:40:47 PM (last edit: 12/21/2011 6:40:47 PM)
|
Garp |
This code looks perfectly elegant to me. Only way to make it simpler would require a built-in unwire() method. Well done, Mr.Burns :)

read 280 times 12/22/2011 2:52:45 AM (last edit: 12/22/2011 2:52:45 AM)
|