Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(36 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Scripting Arrays
show user profile  dlangstrom
Im trying to find a script that will allow me to easily take the objects that i have selected in my scene and then export each one out indiviually as an .stl into 1 folder.....can someone please help me with this??
read 454 times
7/20/2012 10:17:40 PM (last edit: 7/20/2012 10:17:40 PM)
show user profile  dlangstrom
i have a code that works, but for some reason i have to schoose if i want binary or ASCII for each obj. how do i bypass that?
read 437 times
7/20/2012 11:39:23 PM (last edit: 7/20/2012 11:39:23 PM)
show user profile  dlangstrom
by the way....i need them to all be .stl Binary
read 436 times
7/20/2012 11:41:13 PM (last edit: 7/20/2012 11:41:13 PM)
show user profile  Garp
Apparently you're lucky as binary seems to be the default.
I can't find any way of setting this option through mxs though. I think if you make one manual export with the option you want, all successive exports should use the same.

Here's a snippet:
(create the folder first, select the objects to export and run the script)

read 424 times
7/21/2012 12:19:04 AM (last edit: 7/21/2012 12:21:00 AM)
show user profile  dlangstrom
i appreciate the reply, but it doesnt work.....i will continue to try using the base of the code you supplied....thanks again
read 388 times
7/24/2012 6:38:20 PM (last edit: 7/24/2012 6:38:20 PM)
show user profile  Mr.Burns
Garp, why didn't you write

for obj in selection


I always do it like that, but since you're a cunning scripter I suspect there may a good reason for it ;)

edit: I just read through the rest of the script, d'oh!
read 384 times
7/24/2012 6:42:57 PM (last edit: 7/24/2012 10:30:35 PM)
show user profile  Dave
This should do it.

"I flew over Egypt once"

read 382 times
7/24/2012 6:43:56 PM (last edit: 7/24/2012 6:43:56 PM)
show user profile  dlangstrom
i have tried this. Its good. The only bad part is: im trying to export all objs as .stl all individual files in the same folder. There is no option to change to .stl. When i choose the .stl exporter, it always gives me an error. I tried replacing some keywords /names in the script but i get the same error. Im no genius in coding but i do understand it when i read it. I have not coded in 6yrs (especially not in maxScript), but when i read it i understand it. This is frustrating...its hard to even google search this idea. I can write a script to export 1 single obj as a .stl but i cant figure out to store multiple objs in an array and call them out individually and export them each out as .stl. I thought i found a batch exporter but i keep getting errors. i dont wast ascii, so keeping it default to binary is fine. I hope i am explaining this good. Please help....i wanna go "Office Space" on my computer!
read 363 times
7/25/2012 12:13:28 AM (last edit: 7/25/2012 12:14:02 AM)
show user profile  Dave
Ah... hang on, it's been about 2 years since I used that script... and I do remember it just not working sometimes. I think you should perhaps try a re-start of max or close and re-launch the script.

Alternatively, and I'm not sure why I didn't just link this in the first place, the same guy has a much more updated version! I will just assume it "fixes" stuff.

"I flew over Egypt once"

read 358 times
7/25/2012 12:18:22 AM (last edit: 7/25/2012 12:18:22 AM)
show user profile  Garp
@Mr.Burns: The exportFile() method exports either the whole scene or only the current selection (that's the selectedOnly parameter). Since dlangstrom wants one export per object in the current selection, I have to select them in turn.

@dlangstrom: I've tested it in max 2012 and it worked fine (!?).

read 347 times
7/25/2012 2:58:54 AM (last edit: 7/25/2012 2:58:54 AM)
show user profile  dlangstrom
thanks guys, i appreciate all the help....i will check out that link @Dave.
read 331 times
7/25/2012 4:55:10 PM (last edit: 7/25/2012 4:55:10 PM)
show user profile  dlangstrom
@garp thanks man for that snippet you gave. I like this forum, so many people trying to help....
read 330 times
7/25/2012 4:55:56 PM (last edit: 7/25/2012 4:55:56 PM)
#Maxforums IRC
Open chat window