c4d.modules.mograph.FieldInfo¶
-
class
c4d.modules.mograph.
FieldInfo
¶ New in version R20.
Attributes
FieldInfo.
_flags
¶The channels that should be sampled.
Type: int
FieldInfo.
_threadIndex
¶The current thread index.
Type: int
FieldInfo.
_totalThreadCount
¶The number of threads active for the current execution.
Type: int
FieldInfo.
_callerThread
¶The calling thread. Required.
Type:
c4d.threading.BaseThread
FieldInfo.
_doc
¶The calling document. Required.
FieldInfo.
_callerStack
¶A list of objects for the calculation as well as an ID for the invocation chain. Required.
Note
The caller stack ID is especially useful to hash data to a specific caller.
Warning
The ID uses the memory addresses of the callers so the value can change on undo/redo and on document load.
FieldInfo.
_inputData
¶The input data to be sampled.
Methods Signatures
Creates a |
Creates a |
|
Checks if the |
|
Checks if the |
Methods Documentation
-
FieldInfo.
__init__
(self)¶ Creates a
FieldInfo
instance.- Return type
- Returns
The created
FieldInfo
instance.
-
FieldInfo.
Create
(self, flags, thread, doc, currentThreadIndex, threadCount, inputs, callers)¶ Creates a
c4d.modules.mograph.FieldInfo
while relaying potential allocation errors.- Parameters
flags (int) –
The channels to sample.
FIELDSAMPLE_FLAG_VALUE
Sample only the value.
FIELDSAMPLE_FLAG_DIRECTION
Sample the velocity.
FIELDSAMPLE_FLAG_COLOR
Sample the color.
FIELDSAMPLE_FLAG_ROTATION
Sample the rotational velocity.
thread (c4d.threading.BaseThread) – The caller thread.
doc (c4d.documents.BaseDocument) – The document to sample.
currentThreadIndex (int) – The thread index that will sample those points.
threadCount (int) – The total thread count.
inputs (Optional[c4d.modules.mograph.FieldInput]) – The full point list.
callers (Optional[list(c4d.BaseList2D)]) – An initializer list to build the stack, first item is base of stack.
- Return type
c4d.modules.mograph.FieldInfo
- Returns
The created FieldInfo