THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/10/2012 at 15:47, xxxxxxxx wrote:
I tried this in at least a dozen of arrangements, but I can't get it to work within the keyboard input (could have something to do with the things Yannick wrote ... maybe). It works by executing a python script without a problem, but in a plugin ... at least I don't know how.
As this works:
def KeyboardInput(self, doc, data, bd, win, msg) : if msg.GetLong(c4d.BFM_INPUT_CHANNEL) == c4d.KEY_ESC: self.mode = not self.mode return True return False
The most logical thing to me would be to replace c4d.KEY_ESC with c4d.QCTRL, but no chance. Neither does
if msg[c4d.BFM_INPUT_QUALIFIER] == c4d.QCTRL:
I get that CTRL, SHIFT and ALT are special keys and maybe there is no way to integrate them like I want it.
I think the whole input stuff is very confusing, and sadly as you mentioned in the other thread the SDK isn't very helpful. As I'm not a regular programmer this is even more difficult I guess.