Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.

IDs and information for VPcomic

VPcomic

Attributes

  • ENGLISH NAME : CelRenderer
  • NAME : VPcomic
  • INCLUDE : VPbase
  • PATH : c4dplugin/description/vpcomic.res
  • PLUGIN : c4dplugin
  • MAXON online help (may not exist): VPCOMIC

Elements

ID UI Name Type Parameters Cycle
VP_COMICCOLOR Color BOOL  
VP_COMICILLUMINATION Illumination BOOL  
VP_COMICOUTLINE Outline BOOL  
VP_COMICEDGES Edges BOOL  
VP_COMICEDGECOLOR EdgeColor COLOR  
VP_COMICBACKCOLOR BackgroundColor COLOR  
VP_COMICQUANTIZE Quantize BOOL  
VP_COMICQUANTIZELEVEL Steps LONG
PARENTID VP_COMICQUANTIZE
MIN 1
MAX 100

Example Code

The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown. This code is just to show you how to access the values for getting and setting the parameters.

Python

import c4d
from c4d import gui
def main():
    videoPost = c4d.BaseVideoPost(c4d.VPcomic)
    
    #You can set parameters two different ways. 
    #First way              
    videoPost[c4d.VP_COMICCOLOR] = True
    videoPost[c4d.VP_COMICILLUMINATION] = True
    videoPost[c4d.VP_COMICOUTLINE] = True
    videoPost[c4d.VP_COMICEDGES] = True
    videoPost[c4d.VP_COMICQUANTIZE] = True
    videoPost[c4d.VP_COMICQUANTIZELEVEL] = 1
    
    #Second way, using the base container.
    bc = videoPost.GetDataInstance()
    bc.SetBool(c4d.VP_COMICCOLOR,True)
    bc.SetBool(c4d.VP_COMICILLUMINATION,True)
    bc.SetBool(c4d.VP_COMICOUTLINE,True)
    bc.SetBool(c4d.VP_COMICEDGES,True)
    bc.SetBool(c4d.VP_COMICQUANTIZE,True)
    bc.SetInt32(c4d.VP_COMICQUANTIZELEVEL,1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../c4dplugin/description/vpcomic.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseVideoPost *pVideoPost = BaseVideoPost::Alloc(VPcomic);  
    
    //You can set parameters two different ways. 

    //First way              
    //Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead. 

    DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET;
    pVideoPost->SetParameter(DescID(VP_COMICCOLOR),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_COMICILLUMINATION),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_COMICOUTLINE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_COMICEDGES),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_COMICQUANTIZE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_COMICQUANTIZELEVEL),GeData(1),flags);
    pVideoPost->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pVideoPost->GetDataInstance();
    bc->SetBool(VP_COMICCOLOR,true);
    bc->SetBool(VP_COMICILLUMINATION,true);
    bc->SetBool(VP_COMICOUTLINE,true);
    bc->SetBool(VP_COMICEDGES,true);
    bc->SetBool(VP_COMICQUANTIZE,true);
    bc->SetInt32(VP_COMICQUANTIZELEVEL,1);
    pVideoPost->Message(MSG_UPDATE);                                                      
}