Script Converter - nrosenstein-c4d/c4d-prototype-converter GitHub Wiki

Script Converter makes it incredibly easy to convert Cinema 4D Python scripts into full CommandData plugins.

Quickstart Video

Parameters

  • Script: Use this pull-down to select the script you want to convert. If you would prefer to select a script using your File Browser, choose the Select File... option.
  • File Selector: Click on the ... button to browse your computer for a .py script.
  • Plugin Name: How would you like your plugin to appear in menus?
  • Plugin Help: This is the text that shows up in the Status Bar and Tooltip when you hover over your plugin's icon / command name.
  • Icon: If your script already has an icon associate with it, this will be automatically loaded. If it doesn't, a default icon will be created and assigned. If you have a specific image you'd like to use, click on the ... button and select a 64x64px or 32x32px image file. You will have the best luck if you use a .tif file with an Alpha channel.
  • Plugin Directory: Where would you like your plugin to be created? This defaults to your User/C4D Prefs/plugins/ directory.
  • Indentation: Your code will be automatically reformatted to adopt a standard indentation (tab) style. Python's PEP8 suggests that 4 Spaces be used to represent indents, and thus that's the default.
  • Overwrite: Be careful when using this! This will overwrite any existing plugins in the destination directory. Only use this option if know what you're doing. Any changes you've made to files will not be preserved after an overwrite.
  • File Structure Preview: This portion of the dialog shows what files will be created (White), conflict with existing files (Red), will knowingly overwrite (Yellow) and skip over already existing files (Blue).