c4d.modules.render.InitRenderStruct

class c4d.modules.render.InitRenderStruct

Attributes

InitRenderStruct.version

[Read-only]

The version of Cinema 4D.

Type: int

InitRenderStruct.time

[Read-only]

The current time.

Type: BaseTime

InitRenderStruct.fps

[Read-only]

The framerate.

Type: int

InitRenderStruct.docpath

[Read-only]

The path for the document.

Type: str

InitRenderStruct.vd

[Read-only]

The volume data.

Type: VolumeData

Note

Can be None, always check.

InitRenderStruct.doc

[Read-only]

The document to render.

Type: BaseDocument

Note

Can be None, always check.

InitRenderStruct.thread

[Read-only]

The current thread or None for the main Cinema 4D thread.

Type: BaseThread

InitRenderStruct.flags

[Read-only]

Flags:

INITRENDERFLAG_NONE No flags.
INITRENDERFLAG_TEXTURES Use textures.
INITRENDERFLAG_PAINTERNOMIP Disable MIP for painting.
INITRENDERFLAG_NOMIP Disable MIP.
INITRENDERFLAG_PREVIEWRENDER Preview render.
INITRENDERFLAG_IRR Interactive region render.
InitRenderStruct.linear_workflow

[Read/Write]

Changed in version R17.032: Attribute can be set.

Linear workflow enabled/disabled.

Type: bool

InitRenderStruct.document_colorprofile

[Read/Write]

Changed in version R17.032: Attribute can be set.

The color profile of the document:

DOCUMENT_COLORPROFILE_SRGB sRGB color profile.
DOCUMENT_COLORPROFILE_LINEAR Linear color profile.
DOCUMENT_COLORPROFILE_DISABLED Color profile disabled.

Methods Signatures

InitRenderStruct.__init__(self, doc) Initializes a new InitRenderStruct, optionally from doc BaseDocument if passed.

Methods Documentation

InitRenderStruct.__init__(self, doc)

Initializes a new InitRenderStruct, optionally from doc BaseDocument if passed.

New in version R18.020.

Parameters:doc (c4d.documents.BaseDocument) – The optional document to initialize with.
Return type:c4d.modules.render.InitRenderStruct
Returns:A new InitRenderStruct.