such a silly questions, but need your help!


    Sep 07 2006 | 10:54 pm
    Hi,
    I'm a newbie to max/jitter, hope someone can help me with this. I am using jitter to play a quicktime video, and I'm planning to add some text to make them look like subtitles. At the moment I use a message box that says "clear, moveto 10 200, write "hello", bang" to display the word "hello" on screen. But if i want to make the text dynamic (let says I have a counter and I want to display the counting numbers on screen), how would I do that? How do I pass a variable/argument?
    Thank you so much~

    • Sep 07 2006 | 11:06 pm
      Check out jitter recipes, there are examples you can download. Lots of good stuff. https://cycling74.com/story/2006/2/17/153427/406 In particular, Recipe 28: Subtitle.
      Anthony
      ----- Original Message ----- From: Angelina Ho Date: Thursday, September 7, 2006 5:56 pm Subject: [maxmsp] such a silly questions, but need your help!
      > > Hi, > > I'm a newbie to max/jitter, hope someone can help me with this. > I am using jitter to play a quicktime video, and I'm planning to > add some text to make them look like subtitles. At the moment I > use a message box that says "clear, moveto 10 200, write "hello", > bang" to display the word "hello" on screen. But if i want to make > the text dynamic (let says I have a counter and I want to display > the counting numbers on screen), how would I do that? How do I > pass a variable/argument? > > > Thank you so much~ >
    • Sep 07 2006 | 11:13 pm
      Hi Angelina,
      In the jit.lcd.help file it shows you how to get the fps as an overlay on the video using tosymbol.
      I actually did a quick and dirty something like this earlier today, relevant bit is below.
      ~scott
      On 9/7/06, Angelina Ho wrote: > > Hi, > > I'm a newbie to max/jitter, hope someone can help me with this. > I am using jitter to play a quicktime video, and I'm planning to add some text to make them look like subtitles. At the moment I use a message box that says "clear, moveto 10 200, write "hello", bang" to display the word "hello" on screen. But if i want to make the text dynamic (let says I have a counter and I want to display the counting numbers on screen), how would I do that? How do I pass a variable/argument? > > > Thank you so much~ >
    • Sep 07 2006 | 11:15 pm
      hi angelina, if you use a message-box you can set a placeholder for a variable. lets say i want to print out something like "countdown 1", countdown 2", etc you can connect a counter-object to a message-box reading 'countdown $1' and connect that to a print-object. you should see the appropriate message in the max-window now. $1 is the placeholder for another message you can send to the box and will be substituted. your message-box should look something like this then: "clear, moveto 10 200, write $1, bang"
      take a look at the sprintf-help-patch as well!
      hope that helps...
      cheers!jens
      Am 08.09.2006 um 00:54 schrieb Angelina Ho:
      > > Hi, > > I'm a newbie to max/jitter, hope someone can help me with this. > I am using jitter to play a quicktime video, and I'm planning to > add some text to make them look like subtitles. At the moment I use > a message box that says "clear, moveto 10 200, write "hello", bang" > to display the word "hello" on screen. But if i want to make the > text dynamic (let says I have a counter and I want to display the > counting numbers on screen), how would I do that? How do I pass a > variable/argument? > > > Thank you so much~