Cinema 4D - my Python scripts
Jump to navigation
Jump to search
Contents
About
This page contains a copy of the source code for a few of the Python scripts/plugins I've written for Cinema 4D. The following source code should work for C4D R12 and later. To get this code working you should first read the guide here:
- Quick summary of getting Python scripts working:
- Menubar: Script > Script Manager then under the "Python" tab click File > New.
- Copy and paste the desired script.
- Go: File > Save, and give appropriate name.
- Click Execute
- To see console output: Script > Console
- To execute the saved version: Script > User > Your Script Name
List of My Python Scripts
Name Related
object_renamer_find_replace.py
- Cinema 4D - my Python script - find replace object names - does a find/replace on object names using regex library.
object_parent_child_renamer.py
- Cinema 4D - my Python scripts - object parent child renamer - renames all selected parents to using the name of their first child, or all their children to use the parent name.
alphabetically_sort_objects.py
- Cinema 4D - my Python scripts - alphabetically sort objects - alphabetically sorts all objects under selected parents.
Duplicating Objects
copy_object_to_other_objects.py
- Cinema 4D - my Python scripts - copy object to other objects - copies one object as a new first child or parent of other selected objects.
Spline Related
expand_splines.py
- Cinema 4D - my Python scripts - expand splines - takes an open spline (a line) and turns it into a closed spline (polygon) of desired thickness along the original line.
output_spline_points.py
- Cinema 4D - my Python scripts - output spline points - outputs spline points and name (can help to export to code lines).
reduce_splines.py
- Cinema 4D - my Python scripts - reduce splines - (intelligently) reduces the number of points in a closed or open spline.
reduce_splines.py
- Cinema 4D - my Python scripts - reduce splines - (intelligently) reduces the number of points in a closed or open spline.
convert_bezier_splines_to_linear.py
- Cinema 4D - my Python scripts - convert bezier splines to linear - converts bezier/cubic/akima splines to linear splines by adding interpolated points along curved edges.