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 XMSW_SPAWN_DIR
Element Information
Sample Code
Example code for the id XMSW_SPAWN_DIR in Omspawn
Note that this is not the actual code from the Omspawn file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Omspawn.res)
LONG XMSW_SPAWN_DIR { CYCLE { MSPAWN_DIR_RANDOM; MSPAWN_DIR_PARTICLE; MSPAWN_DIR_PROT; MSPAWN_DIR_CUSTOM; } }
Header File Code (Omspawn.h)
#ifndef OMSPAWN_H__ #define OMSPAWN_H__ enum { XMSW_SPAWN_DIR = 1000, //First ID should start at 1000 MSPAWN_DIR_RANDOM = 1, MSPAWN_DIR_PARTICLE = 2, MSPAWN_DIR_PROT = 3, MSPAWN_DIR_CUSTOM = 4, }; #endif // OMSPAWN_H__
String File Code (Omspawn.str)
// C4D-StringResource // Identifier Text STRINGTABLE { XMSW_SPAWN_DIR "Direction"; MSPAWN_DIR_RANDOM "Random(Spherical)"; MSPAWN_DIR_PARTICLE "RelativetoSourceParticleDirection"; MSPAWN_DIR_PROT "RelativetoSourceParticleRotation"; MSPAWN_DIR_CUSTOM "Custom(Absolute)"; }