New in version R13.029.
See also
push_apart_effector.c4d, py_effector.c4d and python_effector.c4d scene examples.
- c4d.modules.mograph.MoData
Get dirty count. Can be used to check if something has changed.
Parameters: |
mask (long) –
Flags:
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | long | ||||||||||||||||||
Returns: | Dirty count. |
Mark the data as dirty.
Parameters: |
mask (long) –
Flags:
|
---|
Clear the data in the arrays.
Parameters: | reset (bool) – True will fill the arrays with their default values. |
---|
Read the data from a hyper file.
Parameters: | hf (HyperFile) – The hyper file to read from. |
---|---|
Return type: | bool |
Returns: | True if the data was read, otherwise False. |
Write the data to a hyper file.
Parameters: | hf (HyperFile) – The hyper file to write to. |
---|---|
Return type: | bool |
Returns: | True if the data was written, otherwise False. |
Get the size of the data in bytes.
Return type: | long |
---|---|
Returns: | Size of the data. |
Set the length of the arrays.
Parameters: | cnt (long) – The new length of the arrays. |
---|---|
Return type: | bool |
Returns: | True if the length was set, otherwise False. |
Get the length of the arrays.
Return type: | long |
---|---|
Returns: | The length of the arrays. |
Get the number of arrays.
Return type: | long |
---|---|
Returns: | The number of arrays. |
Get the description ID for the specified array index.
Parameters: | index (long) – The index of the array, 0 <= index < GetArrayCount(). |
---|---|
Raises IndexError: | |
Raise if the array index is out of range. | |
Return type: | DescID |
Returns: | The description ID. |
Get the ID for the specified array index.
Parameters: | index (long) – The index of the array, 0 <= index < GetArrayCount(). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Raises IndexError: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Raise if the array index is out of range. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return type: | long | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
The retrieved ID:
|
Get the data type of the specified array.
Parameters: | index (long) – The index of the array, 0 <= index < GetArrayCount(). | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Raises IndexError: | |||||||||||||||||||||||||||||||||||||||||||||
Raise if the array index is out of range. | |||||||||||||||||||||||||||||||||||||||||||||
Return type: | long | ||||||||||||||||||||||||||||||||||||||||||||
Returns: |
Type:
|
Get the data type of the specified array.
Parameters: |
id (long) –
The ID of the array:
|
---|
Get the array index for the specified description ID.
Parameters: | id (DescID) – The description ID. |
---|---|
Return type: | long |
Returns: | The retrieved array index. |
Get a pointer to the container for the specified array.
Parameters: | id (DescID) – The description ID of the array. |
---|---|
Return type: | BaseContainer |
Returns: | The internal container. |
Get a pointer to the container for the specified array.
Parameters: | index (long) – The index of the array, 0 <= index < GetArrayCount(). |
---|---|
Raises IndexError: | |
Raise if the array index is out of range. | |
Return type: | BaseContainer |
Returns: | The internal container. |
Get a copy of the array’s container.
Parameters: |
id (long) –
The ID of the array:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | BaseContainer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: | The array’s container. |
Add the specified array.
Parameters: |
|
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
long |
||||||||||||
Returns: |
The index of the added array or NOTOK if it failed. |
Remove the specified array.
Parameters: | id (DescID) – The description ID of the array. |
---|---|
Return type: | bool |
Returns: | True if the array has been removed, otherwise False. |
Set the name for the specified array.
Parameters: |
|
---|
Get the name of the specified array.
Parameters: | id (DescID) – The description ID of the array. |
---|---|
Return type: | str |
Returns: | The name of the array. |
Set the name for the specified array.
Parameters: |
|
---|---|
Raises IndexError: | |
Raise if the array index is out of range. |
Get the name of the specified array.
Parameters: | index (long) – Array index. |
---|---|
Raises IndexError: | |
Raise if the array index is out of range. | |
Return type: | str |
Returns: | The name of the array. |
Get an array.
Parameters: |
id (long) –
The ID of the array:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | list | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: | The array. |
Set an array.
Parameters: |
|
---|
Flushes the data. All data is cleared, the arrays are freed.
Set an offset from the beginning of the arrays, for example array[0] becomes array[offset].
Parameters: | offset (long) – The array offset, 0 <= offset < GetCount(). |
---|
Limits the array. All data are kept internally. Can be useful for certain cases for instance merging.
Parameters: | limit (long) – The array limit, 0 <= limit < GetCount(). |
---|