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!
BLOGS / NEWS & SPECIAL ANNOUNCEMENTS
C4D Cafe is the largest Cinema 4D community. We provide facilities for discussion, showcasing and learning our favourite 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, watch tutorials directly from our video gallery, get your own private messenger, post and upload images, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, C4D Cafe is the right place to be for learning 3D.