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 vpmagicbulletlooks

vpmagicbulletlooks

Attributes

  • ENGLISH NAME : MagicBulletLooks
  • NAME : vpmagicbulletlooks
  • INCLUDE : VPbase
  • PATH : newman/description/vpmagicbulletlooks.res
  • PLUGIN : newman
  • MAXON online help (may not exist): VPMAGICBULLETLOOKS

Elements

ID UI Name Type Parameters Cycle
VP_MAGICBULLETLOOKS_LOOKSBUILDER OpenMagicBulletLooks... BUTTON  
VP_MAGICBULLETLOOKS_PREVIEWAFTER Preview BITMAPBUTTON
BORDER
NO_FADING
VP_MAGICBULLETLOOKS_STRENGTH Mix REAL
UNIT PERCENT
STEP 1
MIN 0
MAX 100
CUSTOMGUI REALSLIDER
VP_MAGICBULLETLOOKS_SAVEPREVIEW SavePreview BOOL ANIM

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.vpmagicbulletlooks)
    
    #You can set parameters two different ways. 
    #First way              
    videoPost[c4d.VP_MAGICBULLETLOOKS_STRENGTH] = 0.1
    videoPost[c4d.VP_MAGICBULLETLOOKS_SAVEPREVIEW] = True
    
    #Second way, using the base container.
    bc = videoPost.GetDataInstance()
    bc.SetFloat(c4d.VP_MAGICBULLETLOOKS_STRENGTH,0.1)
    bc.SetBool(c4d.VP_MAGICBULLETLOOKS_SAVEPREVIEW,True)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../newman/description/vpmagicbulletlooks.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseVideoPost *pVideoPost = BaseVideoPost::Alloc(vpmagicbulletlooks);  
    
    //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_MAGICBULLETLOOKS_STRENGTH),GeData(0.1),flags);
    pVideoPost->SetParameter(DescID(VP_MAGICBULLETLOOKS_SAVEPREVIEW),GeData(true),flags);
    pVideoPost->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pVideoPost->GetDataInstance();
    bc->SetFloat(VP_MAGICBULLETLOOKS_STRENGTH,0.1);
    bc->SetBool(VP_MAGICBULLETLOOKS_SAVEPREVIEW,true);
    pVideoPost->Message(MSG_UPDATE);                                                      
}
             

Buttons

This node has buttons. Buttons can manually be executed by calling the following code

Python

c4d.CallButton(videoPost,c4d.VP_MAGICBULLETLOOKS_LOOKSBUILDER)
c4d.CallButton(videoPost,c4d.VP_MAGICBULLETLOOKS_PREVIEWAFTER)

C++

DescriptionCommand dc;
dc.id = DescID(VP_MAGICBULLETLOOKS_LOOKSBUILDER);             
pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);

DescriptionCommand dc; dc.id = DescID(VP_MAGICBULLETLOOKS_PREVIEWAFTER); pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);