Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    assigned plugin shortcuts bug?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 316 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 12/02/2008 at 14:51, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.111 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi.

      I have a command plugin with several shortcuts assigned.
      The principle behind that is the shortcuts are assigned in cinema's command manager so the plugin is triggered by
      the '<' key and combinations like shift+<, ctrl+<, shift+ctrl+<, alt+<, shift+alt+< and shift+ctrl+alt+<. Then the plugin code decides what to do by checking the qualifiers.
      I am checking the qualifiers like this:

      >      BaseContainer res; \>     GetInputEvent(BFM_INPUT_KEYBOARD, res);      \>      int qualifier= res.GetLong(BFM_INPUT_QUALIFIER, 0); \>      add_mode= qualifier & QSHIFT; \>      render_mode= qualifier & QCTRL; \>      deform_mode= qualifier & QALT; \>      if(deform_mode && !render_mode) editor_mode = FALSE; \>      if(add_mode && render_mode && deform_mode) { fix_mode = TRUE; add_mode = FALSE; editor_mode = FALSE; render_mode = FALSE; deform_mode = FALSE; } \>

      This works fine, all 7 shortcuts are assigned and working - at least in the beginning.
      SOMETIMES the following bug appears:
      When pressing shift+alt+< the plugin won't get triggered anymore, but only sometimes. It still works with the button and the qualifiers then. After using it with button and qualifiers several times the hotkey works again. I'm quite sure, this is not a problem of my code but maybe i'm missing something simple here...
      Any opinions on this? Thank you very much!

      Yakuza

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 13/02/2008 at 03:48, xxxxxxxx wrote:

        sorry I can not confirm this.

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 14/02/2008 at 21:39, xxxxxxxx wrote:

          Hello,

          i found out what the error is. It's neither Cinema, nor my code, SHIFT+ALT is just the WINDOW$-Shortcut to switch keyboard layout between ENGLISH and GERMAN 😄
          Now this is really buggin me...

          cheers

          Yakuza

          1 Reply Last reply Reply Quote 0
          • First post
            Last post