Tutorial: Manipulating layers in Cinema 4D using Python

Tutorial: Manipulating layers using Python

I got a request for a tutorial on manipulating layers using Python:
Creating new layers, adding objects to layers and adjusting the layer options (solo, etc.).

Note: A lot of the information / knowledge I got from reading the PluginCafe Python forum!

Here you can download the tutorial pfd file and the Python script.

2 thoughts on “Tutorial: Manipulating layers in Cinema 4D using Python

  1. Thank you for the great script!
    Maybe we can make it smarter by using these lines instead of button click emulation.
    doc.ChangeNBit( NBIT_SOLO_LAYER, NBITCONTROL_SET ) #Solo
    doc.ChangeNBit( NBIT_SOLO_LAYER, NBITCONTROL_CLEAR ) #Unsolo

Leave a Reply

Your email address will not be published. Required fields are marked *