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.
ID CAMERAOBJECT_SHUTTER_SPEED_PRESET
Element Information
Sample Code
Example code for the id CAMERAOBJECT_SHUTTER_SPEED_PRESET in Ocamera
Note that this is not the actual code from the Ocamera file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Ocamera.res)
LONG CAMERAOBJECT_SHUTTER_SPEED_PRESET { ANIM OFF; CYCLE { CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_1000; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_500; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_250; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_125; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_60; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_30; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_15; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_8; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_4; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_2; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_1; CAMERAOBJECT_SHUTTER_SPEED_PRESET_2_1; CAMERAOBJECT_SHUTTER_SPEED_PRESET_4_1; CAMERAOBJECT_SHUTTER_SPEED_PRESET_8_1; CAMERAOBJECT_SHUTTER_SPEED_PRESET_15_1; CAMERAOBJECT_SHUTTER_SPEED_PRESET_30_1; } }
Header File Code (Ocamera.h)
#ifndef OCAMERA_H__ #define OCAMERA_H__ enum { CAMERAOBJECT_SHUTTER_SPEED_PRESET = 1000, //First ID should start at 1000 CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM = 1, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_1000 = 2, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_500 = 3, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_250 = 4, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_125 = 5, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_60 = 6, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_30 = 7, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_15 = 8, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_8 = 9, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_4 = 10, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_2 = 11, CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_1 = 12, CAMERAOBJECT_SHUTTER_SPEED_PRESET_2_1 = 13, CAMERAOBJECT_SHUTTER_SPEED_PRESET_4_1 = 14, CAMERAOBJECT_SHUTTER_SPEED_PRESET_8_1 = 15, CAMERAOBJECT_SHUTTER_SPEED_PRESET_15_1 = 16, CAMERAOBJECT_SHUTTER_SPEED_PRESET_30_1 = 17, }; #endif // OCAMERA_H__
String File Code (Ocamera.str)
// C4D-StringResource // Identifier Text STRINGTABLE { CAMERAOBJECT_SHUTTER_SPEED_PRESET ""; CAMERAOBJECT_SHUTTER_SPEED_PRESET_CUSTOM "Custom"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_1000 "1/1000s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_500 "1/500s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_250 "1/250s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_125 "1/125s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_60 "1/60s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_30 "1/30s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_15 "1/15s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_8 "1/8s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_4 "1/4s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_2 "1/2s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_1_1 "1s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_2_1 "2s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_4_1 "4s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_8_1 "8s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_15_1 "15s"; CAMERAOBJECT_SHUTTER_SPEED_PRESET_30_1 "30s"; }