hi ,
i ve tried to change the keyboard.js ,because i want to add a effect
with a keyboard short cut.
i tried this:
// freej keyboard controller settings
// basic template by jaromil
//
kbd = new KeyboardController();
register_controller( kbd );
__kbd_sel = selected_layer();
kbd.pressed_1 = function() { __kbd_sel.set_blit("RGB"); }
kbd.pressed_2 = function() { __kbd_sel.set_blit("RED"); }
kbd.pressed_3 = function() { __kbd_sel.set_blit("GREEN"); }
kbd.pressed_4 = function() { __kbd_sel.set_blit("BLUE"); }
kbd.pressed_5 = function() { __kbd_sel.set_blit("ADD"); }
kbd.pressed_6 = function() { __kbd_sel.set_blit("SUB"); }
kbd.pressed_7 = function() { __kbd_sel.set_blit("ABSDIFF"); }
kbd.pressed_8 = function() { __kbd_sel.set_blit("AND"); }
kbd.pressed_9 = function() { __kbd_sel.set_blit("OR"); }
kbd.pressed_0 = function() { __kbd_sel.set_blit("NEG"); }
kbd.pressed_a = function() { __kbd_sel.add_effect("CARTOON"); }
kbd.pressed_b = function() { __kbd_sel.add_effect("Cartoon"); }
when i execute the script the blit keyboard functions are o.k.
but when i press the a or b key i get the following error
registered Keyboard controller
JS open result: function () {
script error in /root/keyboard.js:23 flag: 2
JS Error Message: TypeError: __kbd_sel.add_effect is not a function flag: 2
can anyone explain me what is wrong and give me an example how to add a
effect to a keyboard short cut.
im not experienced with java script ..
maybe anyone can made a keyboard.js which has the same functions
as described on the keyboard shortcuts picture on the freej documentation site ...
so it is easy for the not so java script experienced people to use a lot
of freej functionalities with the keyboard
thanks for any tips
i like freej very much
thanks alot for this programm
in the future i will post my experience with freej and the resulting movies
on this website
www.transformate.de
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer