Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. mdk7b2
    3. Best
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by mdk7b2

    • RE: Get pressed keys in ObjectData plugin

      this might help ✌

      def IsDownCTRL(self):
      
      	# the user hold down CTRL key
      	BC = c4d.BaseContainer()
      	if c4d.gui.GetInputState(c4d.BFM_INPUT_KEYBOARD, c4d.BFM_INPUT_CHANNEL, BC):
      		return BC[c4d.BFM_INPUT_QUALIFIER] == c4d.QUALIFIER_CTRL
      
      	return False
      
      def IsDownSHIFT(self):
      
      	# the user hold down SHIFT key
      	BC = c4d.BaseContainer()
      	if c4d.gui.GetInputState(c4d.BFM_INPUT_KEYBOARD, c4d.BFM_INPUT_CHANNEL, BC):
      		return BC[c4d.BFM_INPUT_QUALIFIER] == c4d.QUALIFIER_SHIFT
      
      	return False
      
      def IsDownALT(self):
      
      	# the user hold down ALT key
      	BC = c4d.BaseContainer()
      	if c4d.gui.GetInputState(c4d.BFM_INPUT_KEYBOARD, c4d.BFM_INPUT_CHANNEL, BC):
      		return BC[c4d.BFM_INPUT] == c4d.QUALIFIER_ALT
      
      	return False
      
      posted in Cinema 4D SDK
      M
      mdk7b2