Call Python

$150
0 ratings

A plugin for render farms

This plugin will let you run a python script when a scene is loaded. This is useful for render farms who may need to process the scene in some way, such as to fix up any texture paths, before a render is started.

Running Python after a scene is loaded

When a scene is loaded it will call the python script called aftersceneload.py

This python file should be placed directly next to the "callpython.xdl64" file which will be located at <Cinema 4D>/plugins/Plugins4D/callpython/callpython.xdl64

Place the included sample aftersceneload.py file in this location. This example will simply add a sphere to the document after it is loaded.

The variables doc and op are defined and can be used directly in the python script, where doc is the newly loaded document and op is the first object in the scene.

Running a custom python file when C4D starts up

A command like parameter to run a python file when C4D starts up, before the scene is loaded. You may wish to use this to instead use a python script to fetch assets and load in a scene, or for some other purpose.

Use the parameter -runpython from your command prompt like so:

c:\Program Files\Maxon Cinema 4D R23>"Cinema 4D.exe" -runpython "F:\createcube.py"

The variables doc and op are defined and can be used directly in the python script, where op is the first object in the scene.

Additional Included Files

aftersceneload.py - a simple script that will put a sphere in the scene.

I want this!

Comes with installers for OSX and Windows for Cinema 4D R20 to R25 as well as zip files for manual installation.

Copy product URL
$150

Call Python

0 ratings
I want this!