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

Featured Threads
  inspiration alert!!!
(37 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

Exporting 3d font from max - Maxscript?
show user profile  Loud
Hey All,

I have need to export every character for a font as a separate .fbx file. I don't mind doing it manually, but I'm a programmer. Surely this can be automated?

Even if the whole process can't be automated maybe you know of some shortcuts?

read 659 times
6/2/2010 6:38:59 PM (last edit: 6/2/2010 6:38:59 PM)
show user profile  advance-software
I don't know maxscript, but you can probably just drop down a character how you want it with the listener open, then generalize & wrap with a for loop to do the whole lot.

To simplify, you could just create all characters in the same scene with the name of each object matching its geometry (that's how I do this).

You might need some info on the spacings too for proportional spacing though maybe the bounding boxes are sufficient.

read 642 times
6/2/2010 7:28:35 PM (last edit: 6/2/2010 7:30:22 PM)
show user profile  Loud
Cool. Turns out I'm going to do something completely different but thanks for the ideas.

read 634 times
6/2/2010 7:34:11 PM (last edit: 6/2/2010 7:42:53 PM)
show user profile  Garp
file_name = "C:\\my_font_"

all_chars = "abcdefghijklmnopqrstuvwxyz"
all_chars += "0123456789"
all_chars = all_chars as stringStream

temp_text = text()

while not eof all_chars do
ch = readChar all_chars
temp_text.text = ch
exportFile (file_name + ch + ".fbx") #noPrompt

delete temp_text

Obviously you need to add more characters to the all_chars string.

edit: if you need punctuation characters, using them in the file's name won't work.
Better use (file_name + (bit.charAsInt ch as string) + ".fbx") instead.

read 619 times
6/2/2010 7:57:37 PM (last edit: 6/2/2010 8:10:07 PM)
show user profile  Loud
Oh snap, that's excellent reference! Thanks for taking the time to do that!

Edit: Garp, where would you say is the best place to learn maxscript? It seems like when I've dived into it in the past, the most educational stuff I got was from Dub's maxscript tutorials right here on the forums.

read 606 times
6/3/2010 3:06:46 AM (last edit: 6/3/2010 3:18:42 AM)
show user profile  Garp
The best imo is maxscript 101 by John Wraiwright, the guy who wrote maxscript.
Unfortunately, it'n not available for purchase anymore and the site says it'll be soon available for free. What 'soon' means can be a problem though.
CGAcademy has several good ones too.

If you don't want to spend money, go through the HOW-TOs in the reference and don't rush them.
They are small scripts explained in detail line by line.
After that, find some good free scripts and go through them. See how they do their magic. In places like scriptspot, you'll find the best and the worst. Instead try downloading packages from Bobo (Borislav Petrov), Blur Studio, etc. These guys know their stuff.

read 597 times
6/3/2010 4:24:12 AM (last edit: 6/3/2010 4:24:12 AM)
show user profile  Dub.
Another good way is to post your broken scripts here. There are a bunch of scripters here who can help with problems of any complexity.

read 593 times
6/3/2010 4:41:00 AM (last edit: 6/3/2010 4:41:00 AM)
#Maxforums IRC
Open chat window