Edit product

$150

Call Python

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.

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

Checkout

Call Python

Enter your info to complete your purchase

Card

···· ···· ···· 4242
Test card

05/18

Card

Use a different card?

Card

pp paypal

or pay with

We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

or pay with

You'll be charged US$150.

Your purchase was successful!

We charged your card and sent you a receipt

Summary

    Good news! Since you already have a Gumroad account, it's also been added to your library.

    Powered by Gumroad