My collection of Cinema4d scripts. Currently written for Maxon Cinema 4D R21.207 in Python version 2.7.18
- Download the .py file
- Open your 3D scene in Cinema4D
- Cinema4D -> Main Menu -> Extensions -> User Scripts - > Run Script -> Locate download .py file
- Applies Subdivision modifier to all objects at the top of the hirearchy
- Grouped items are given 1 Subdivision for all items in that group
- Non grouped items are each given a Subdivision modifier
- Converts imported FBX materials to Corona materials
- Intended for V-Ray Roughness materials that have been converted to Standard materials before exporting to FBX
- When exporting from 3dsmax use this script to convert materials and export to FBX
- Diffuse & Diffuse Color
- Roughness
- Metal
- Normal Bump
- Alpha/Opacity
- Transmissive - any materials using "Transparency" will be converted to Glass. Comment out line 63-73 if not required
Change/Add your own material settings in Function: newCoronaMaterial(current_material, new_corona_mat)
- Converts imported FBX materials to Physical materials
- Intended for V-Ray Roughness materials that have been converted to Standard materials before exporting to FBX
- When exporting from 3dsmax use this script to convert materials and export to FBX
- Diffuse & Diffuse Color
- Roughness - materials without a roughness texture will be set to roughness 100%
- Metal
- Normal Bump
- Transmissive - any materials using "Transparency" will be converted to Glass. Comment out line 158-174 if not required
- Other textures will be kept in the conversion but not color profile corrected (linear/srgb)
Change/Add your own material settings in Function: convertMaterials(mat)
- Converts imported FBX materials to V-Ray materials
- Intended for V-Ray Roughness materials that have been converted to Standard materials before exporting to FBX
- When exporting from 3dsmax use this script to convert materials and export to FBX
- Diffuse & Diffuse Color
- Roughness
- Metal
- Normal Bump
- Alpha/Opacity
- Transmissive - any materials using "Transparency" will be converted to Glass. Comment out line 68-79 if not required
Change/Add your own material settings in Function: newVrayMaterial(current_material, new_vray_mat)
Preferences can be permanently changed - Comment in line 208 if required (disabled by default to avoid changes to users preference)
- Flips Y/Z Axis for imported FBX models with inverted axis (such as imported from 3dsmax)
- Works for Nulls, Nested Nulls & Polygon objects
- Make sure you reset transform/xforms on all objects before grouping and exporting to FBX