c4d.modules.render.InitRenderStruct

The InitRenderStruct is usually filled by Cinema 4D and then passed to the shader ( BaseShader.InitRender() ).

Definition

class c4d.modules.render. InitRenderStruct

Members

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_0 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 profiles disabled.
InitRenderStruct. __init__ ( [ doc ] )

New in version R18.020.

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

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

Table Of Contents