Jump to content


New Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Poor

Profile Information

  • First Name
  • Last Name
  • C4D Ver
    R20.026 Studio
  1. Hi there! I am new to Cinema, having come from a different 3D package, and have been playing around with the Python API to create various scripts replicating certain functionality in my original software. These scripts have been very simple, typically calling/toggling commands (with 'c4d.CallCommand(id)', for example), and I have been binding them to different keyboard shortcuts using the 'Customise Commands' Manager. My issue is that I'm creating a large number of small '.py' script files and assigning them manually to shortcuts, and feel that it would be much more manageable and efficient for me to merge my scripts into one main file and assign shortcuts from within it. As a result, I was wondering if there is an easy way of triggering these individual script commands within the main script file as a result of user-inputted keypresses? For example, the type of thing I'm looking to achieve is: if user_presses_F10_key: c4d.CallCommand(12083) # Change to 'Top' view elif user_presses_CTRL+TAB_keys: c4d.CallCommand(12080) # Change to 'Right' view Any help/detailed answer would be really appreciated as I'm still fairly new to Python in general too! Thanks!



C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :) Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, get your own private messenger, post status updates, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, Cafe is the right place.
  • Create New...