typing text into jit.2text

Nov 8, 2006 at 4:21pm

typing text into jit.2text

Hi I want to make a patch where I use the alphachannel of a text (realtime typed into a jit.2Dtext objest) as an alpha for some other movie

I can’t figure out how to type in the text into jit.2D text, I want it that it’s all on one line but big characters, so that on a 2560x 768 projection window you can type in a word and it automatcally scales to fit the window (until there is for example an enter pressed)

then when there are other words typed it just needs to erase the first letter everytime there is another key pressed,

I have no id whatsoever about the typing thing, the alphablend is of course obvious (or at least I think its obvious)

Any ideas anyone, I’ve tried to get my head around the jit.2D text ref and the jit.lcd but it didn’t bring me any further

best regards

pieter

#28589
Nov 9, 2006 at 3:37am

this should get you started:

#P window setfont Geneva 9.;
#P window linecount 1;
#P newex 17 77 61 11337737 qmetro 100;
#P toggle 17 37 32 0;
#P window setfont “Sans Serif” 9.;
#P newex 17 102 61 9109513 t b erase b b;
#P newex 17 170 92 9109513 jit.gl.render example;
#P window setfont Geneva 9.;
#P user textedit 68 133 294 160 32896 173 9 maybe;
#P user jit.pwindow 80 248 82 62 0 1 0 0 1 0;
#X name example;
#P newex 51 198 138 11337737 jit.gl.text2d example @align 1;
#P connect 4 2 0 0;
#P connect 2 0 0 0;
#P connect 4 0 3 0;
#P connect 4 1 3 0;
#P connect 6 0 4 0;
#P connect 5 0 6 0;
#P connect 4 3 2 0;
#P window clipboard copycount 7;

jl

#87968

You must be logged in to reply to this topic.