CommandData Hotkey



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

    On 25/06/2011 at 03:37, xxxxxxxx wrote:

    Hi,

    Assigning my CommandData Plugin to a hotkey and pressing that Hotkey doesn't work.
    What did I do wrong ?

      
      def Execute(self, doc) :  
          if not self.dlg:  
              self.dlg        = QuickDocs_Dialog()  
          self.dlg.Open(c4d.DLG_TYPE_ASYNC, self.GetPluginId())  
      
          return True  
      
      
      def RestoreLayout(self, subid) :  
          if not self.dlg:  
              self.dlg        = QuickDocs_Dialog()  
          return self.dlg.Restore(self.GetPluginId(), subid)  
      
      @classmethod  
      def Register(cls) :  
          icon                    = cls.LoadIcon()  
          data    = {  
              "id":       cls.GetPluginId(),  
              "icon":     icon,  
              "str":      "QuickDocs",  
              "help":     "Lets you quickly switch between your open documents.",  
              "info":     c4d.PLUGINFLAG_COMMAND_HOTKEY,  
              "dat":      cls(),  
          }  
      
          RegisterCommandPlugin(**data)
    

    Thanks,
    Niklas



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

    On 28/06/2011 at 11:52, xxxxxxxx wrote:

    push


Log in to reply