Cinema 4D R15 API brings important naming changes. See Transition to Cinema 4D R15 API guide.
Additionally to the naming modifications R15 brings important API changes. See API Change List in R15.
New libraries:
Important new symbols:
IpAddr
/ IpAddrPort
+ Related new network functionsNew files:
Deprecated symbols:
Do no longer use printf()
, scanf()
, sscanf()
etc. unless you are working on system specific code.
The new routines to call instead are maxon::DiagnosticOutput(), maxon::WarningOutput(), maxon::CriticalOutput(), maxon::OutputWithFlags(), maxon::FormatString
and maxon::ScanString
.
These new functions are safe and more powerful; they work with Cinema 4D API String, Vector, Matrix etc. classes.
There is a new convenience function called maxon::Inverse(). Use this conveniently wherever a division by 0.0 could happen. Example:
Unless you are absolutely certain due to other checks this could lead to a division by 0.0 as e.g. the image could have been uninitialized. To be on the safe side write:
Environments for R15 development are:
The new SDK Examples page lists the plugins examples in the cinema4dsdk project located in the plugins directory of the Cinema 4D install folder.
A Command Line Rendering example has been added to the cinema4dsdk examples: source/other/commandlinerender.cpp. It shows how to filter C4DPL_CommandLineArgs, parse the passed Command Line arguments, load a document, render it etc.
See Command Line Render example description.
Sculpt brushes examples have been added in source/sculpting:
See Sculpt Brushes example description.
Another new example in source/pgp/pgp.cpp demonstrates the use of the newly added library lib_secure_random.h and its SecureRandom class to develop PGP data encryption and decryption. See PGP example description.
R15.057 brings some minor changes. See API Changes in R15.057.