Thank to your last replies, I’ve solved the
problem about caps in the new makehuman
interface (a console). Now I’ve a strange problem
only with QKEY.
If I hit any key without SHIFTKEY pressed, it’s OK:
a,b,c,d,e,f…
if I press all other buttons (but not QKEY) with
SHIFTKEY pressed it’s OK:
A,B,C,D,E,F…
but if I use the SHIFT+QKEY, to print “Q”,
python script exit.
I try using the CTRLKEY instead SHIFTKEY,
but the result is the same: i can’t print the caps Q
because the CTRL+QKEY quit the script.
Do you know a command to “deactivate” the
quit with SHIFT+Q or CTRL+Q ?
If you use dir(Blender.Draw), you have a notice about
a strange key event, like QFULL and Q_FIRSTTIME. I must
use this instead QKEY?
This is a portion of code used:
def event(evt, val):
global shift_pressed
if (evt >= AKEY and evt <= ZKEY and val and not shift_pressed):
evalut.setOutput(evalut.getOutput()+chr(evt)); Draw();
if (evt >= AKEY and evt <= ZKEY and val and shift_pressed):
evalut.setOutput(evalut.getOutput()+chr(evt-32)); Draw()
if (evt >= ZEROKEY and evt <= NINEKEY and val):
evalut.setOutput(evalut.getOutput()+chr(evt)); Draw()
thx,
Manuel