A collection of Python scripts for Cinema 4D. These scripts provide various functionalities to enhance and speedup your workflow. Some are mostly shorcuts to simple tasks.
Animation:
- m_PrevRange_FromKeyframes - Set preview range from keyframes
- m_PrevRange_FromRender - Set preview range from render settings
Modeling:
- m_AxisLock_X/Y/Z - Lock object movement to specific axes
Object Manager:
- m_SelectParents - Select parent objects
Render:
- m_Rset_FPS - FPS control
- m_FrameRange_Selected - Set take range from selection
- Additional Redshift bucket sizes (128, 256)
Utility:
- m_BoundingPrimitives - Create bounding primitives
- m_CycleTakes - Cycle through takes
- m_GotoPreviewStart/End - Timeline navigation
- m_IconSet - Icon management
- m_RenderPath - Render path management
- m_VertexNumSelect - Vertex selection by number
- m_VertexSkipSelect - Vertex selection with skip pattern
- m_AlignToSelected - Updated to work on multiple objects
- m_HierarchyMoveDN - Added AlT functionality to send to Bottom on Object Manager
- m_HierarchyMoveUP - Added AlT functionality to send to Top on Object Manager
- m_MakeChildren - Updated to work on multiple objects
- m_SceneArrange - Added Pop-up Menu to select what to arrange
- m_copyDisplayColor - Updated to work on multiple objects
- m_AnimationCopyToSelected.py
- m_ResetPosition
- m_FlattenPolygons
- m_DistributeObjects_XYZ
- m_SetAsFocus
- m_MakeChildren.py
- m_PasteMatchSelection.py
- m_AxisToBottom.py
Download or clone this repository to your local machine.
C:\Users\<USER>\AppData\Roaming\MAXON\Maxon Cinema 4D 2025\library\scripts\m_scripts
/Applications/MAXON/CINEMA 4D 2025/library/scripts/m_scripts
After you have installed m_Scripts you have to reboot Cinema 4D if it is already running. Scripts are located under Extensions -> User Scripts -> M_Scripts_#.##. Scripts can be used with the commander (Shift+C) too.
Some of the scripts have multiple functions and you can use those with key modifiers (Alt / Ctrl / Shift) and different combinations. Some of the scripts requires a certain item selection or mode to be active. If you don't know what the script does you can either open the script in the script editor and read the description or search the info of the specific script on this page.
- Makes the animation curve constant before and after.
- Repeats the animation curve before and after.
- Sets the preview range based on the keyframe range of selected objects.
- Sets the preview range based on the render settings frame range.
- Aligns selected vertices on the X axis.
- Aligns selected vertices on the Y axis.
- Aligns selected vertices on the Z axis.
- Aligns selected vertices to the origin on the X axis.
- Aligns selected vertices to the origin on the Y axis.
- Aligns selected vertices to the origin on the Z axis.
- Locks the movement of objects to specific axes.
- Flattens selected polygons along the specified axis.
- Aligns the first selected object to the second selected object.
- Copies the display color from the first selected object to the second selected object.
- Pastes an object matching the coordinates of the currantly selected object.
- Copies the display color from the parent to the children of selected objects.
- Sets a random display color to the current object or tag selection.
- Copies material tags from one hierarchy to another with the same objects.
- Pastes objects next to the selected object in the object manager. Recommended to use with shortcut
- Pastes objects as children of the current selection. Recommended to use with shortcut
- Selects the children of the selected objects.
- Selects the parent objects of the current selection.
- Moves selected objects down in the hierarchy.
- Moves selected objects up in the hierarchy.
- Makes selected objects children of the last selected object.
- Groups objects in the scene into categories under new null objects. Still needs some improvement
- Groups each selected cloner and its effectors under a new null object.
- Moves the axis of the selected objects to the bottom.
- Distributes selected objects along the X axis.
- Distributes selected objects along the Y axis.
- Distributes selected objects along the Z axis.
- Sets the render resolution to 1920x1920.
- Sets the render resolution to 1920x1080.
- Sets the render resolution to 1080x1920.
- Sets the frame range to "Current Frame".
- Sets the frame range to "Preview Range".
- Divides the current render resolution by 2.
- Multiplies the current render resolution by 2.
- Toggles the render save option on/off.
- Sets the project frames per second.
- Sets the take frame range based on the selected objects first and last keyframes on the timeline.
- Configures the Redshift renderer to a Basic quick render setting:
- Disables automatic sampling.
- Sets cutoff thresholds to 0.01.
- Sets the adaptive error threshold to 0.1.
- Sets the maximum samples for unified sampling and other related parameters to 32.
- Configures the secondary Global Illumination (GI) engine to Brute Force and sets the number of rays.
- Sets the block size to 512.
Make sure to set Render Mode to Advanced
- Multiplies by x2 the "Unified Max Samples" Sampling overrides and Brute Force Rays.
If "Sampling Overrides" are higher than Unified Max Samples it will multiply this value by x2, otherwise it will take Max Samples value
- If ALT is pressed, the sampling values are halved; instead of doubled.
- Sets the Redshift bucket size to 64.
- Sets the Redshift bucket size to 128.
- Sets the Redshift bucket size to 256.
- Sets the Redshift bucket size to 512.
- Sets the cutoff thresholds for Redshift renderer to 0.01 to speedup rendering.
Use with Caution may introduce fireflyes in certain scenarios
- Sets the Redshift sampling threshold to 0.005.
- Sets the Redshift sampling threshold to 0.01.
- Sets the Redshift sampling threshold to 0.1.
- Sets the Redshift sampling threshold to 1.
- Toggles the camera grid on and off. Recommended to use with shortcut
- Creates a bounding box around selected objects.
- Adds an FFD object to selected objects.
- Converts FFD points to nulls.
- Adds an FFD object to selected vertices.
- Toggles the visibility of selected objects. Recommended to use with shortcut Shift+V
- Cleans up the viewport by toggling various display options. Recommended to use with shortcut
- Jumps to the start or end of the preview range.
- Manages icon settings.
- Selects vertices based on their number.
- Selects vertices with a skip pattern.
- Resets the visibility of selected objects.
- Resets the rotation of selected objects.
- Resets the position of selected objects to the origin.
- Removes empty null objects from the scene.
- Batch exports selected objects to file root as selected format.
- Creates bounding primitive shapes around objects.
- Cycles through available takes in the project.
- Manages render output paths.
- Sets the selected object as the focus point.
This project is licensed under the Creative Commons Legal Code CC0 1.0 Universal. See the LICENSE file for details.