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

adding numbers/text (post or Macro)
show user profile  TiMoN

I need a way to add numbers (from 1 to 100) right in the middle of some images.
Like for instance I have 1 image. I need this image repeated 100 times on our intranet, but with the number each copy represents right in the middle.

I know I could do this in video post if I created 100 images with the numbers in an image sequence and then composited those on top of the images I needed over 100 frames of animation.
That would however require me to create 100 images of numbers, and next time the text will likely have to be a different font, which means I would have to start over.

It doesn't matter if its through videopost, normal render or a Photoshop macro.
Maybe a script which adds +1 for each frame (don't know jack about scripting though)
Plugins or little third party progs. would also be great, but they have to be the free type I'd imagine..

Its for a lottery thing, where each numbered image represents a lottery number. Obviously the smartest way to do this would be if the guy who coded it, simply used the images as backgrounds in the table, and then added numbers with regular text, but for some reason he cant do this..

Terribly boring signature.
read 349 times
6/22/2010 2:38:16 PM (last edit: 6/22/2010 2:38:16 PM)
show user profile  Garp
This is kind of a dirty way but it might be fine for what you want.

Prepare your scene: set your image as background or applied to a plane, create a text object, postion it, choose your font, wireframe color or material, set the render dimensions, etc, and add an Edit mesh on top of the text object.

Then run:
my_folder = "c:/Lottery/"
my_file = "Image"

for i = 1 to 100 do
$Text01.text = i as string
cnt = formattedPrint i format:"03u"
render outputFile:(my_folder + my_file + cnt + ".tga") vfb:false

Change the folder, file name and file extension to your need et voilĂ .

read 335 times
6/22/2010 3:43:36 PM (last edit: 6/22/2010 3:44:26 PM)
show user profile  TiMoN

That seems to do the trick quite nicely.
you sir, are a peach.

Terribly boring signature.
read 325 times
6/22/2010 4:38:07 PM (last edit: 6/22/2010 4:38:07 PM)
#Maxforums IRC
Open chat window