const Int32 height = 720;
if (bitmap == nullptr)
RenderData*
const renderData = renderDocument->GetActiveRenderData();
if (renderData == nullptr)
RENDERRESULT RenderDocument(BaseDocument *doc, const BaseContainer &rdata, ProgressHook *prog, void *private_data, BaseBitmap *bmp, RENDERFLAGS renderflags, BaseThread *th, WriteProgressHook *wprog=nullptr, void *data=nullptr)
Definition: ge_autoptr.h:37
Definition: c4d_basecontainer.h:47
void SetFloat(Int32 id, Float r)
Definition: c4d_basecontainer.h:533
Filename GetFilename(Int32 id, const Filename &preset=Filename()) const
Definition: c4d_basecontainer.h:403
BaseContainer GetData()
Definition: c4d_baselist.h:2329
Manages file and path names.
Definition: c4d_file.h:94
void SetSuffix(const maxon::String &str)
Definition: c4d_basedocument.h:144
Definition: c4d_string.h:39
Py_UCS4 * res
Definition: unicodeobject.h:1113
@ RDATA_PATH
Definition: drendersettings.h:68
@ RDATA_XRES
Definition: drendersettings.h:154
@ RDATA_YRES
Definition: drendersettings.h:155
#define NOTOK
Definition: ge_sys_math.h:267
maxon::Int32 Int32
Definition: ge_sys_math.h:60
return OK
Definition: apibase.h:2690
#define FILTER_PNG
PNG.
Definition: ge_prepass.h:203
@ OK
Image loaded/created.
@ NODOCUMENTCLONE
Set to avoid an automatic clone of the scene sent to RenderDocument().
RENDERRESULT
Definition: ge_prepass.h:422
@ OK
Function was successful.
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
Filename FilenameConvertTokens(const Filename &path, const RenderPathData *rpData)
unsigned long Py_ssize_t width
Definition: pycore_traceback.h:88
Data structure to collect render information in handling Tokens in render output path.
Definition: lib_token.h:86
There are a bunch of functions to dissect a path containing Tokens. In the following an exemplary path /myprojects/topnotchproject/$take/beautiful.tif
is assumed.
static String ExampleTakeTokenHook(
void* data)
{
if (rDataPath == nullptr)
if (take != nullptr)
}
{
ExampleTakeTokenHook);
if (success == false)
}
String GetName() const
Definition: c4d_baselist.h:2381
Definition: lib_takesystem.h:335
maxon::Bool Bool
Definition: ge_sys_math.h:55
Bool RegisterToken(const String &key, const String &help, const String &example, TOKENHOOK *hook)
BaseTake * _cTake
The BaseTake used for rendering.
Definition: lib_token.h:110