This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
The base class of many other classes.
GeListNode CKey
Check if two different references point to the same object.
Note
Does not compare if two different objects are equal.
Returns the ownership. Normally you don’t need this method.
| Return type: | bool |
|---|---|
| Returns: | True if Py4D owns the object, False if CINEMA 4D owns it. |
Sets the dirty checksum, the one returned by GetDirty().
| Parameter: | flags (int) – Flags
|
|---|
Gets the dirty checksum for the object. This can be used to check if the object has been changed.
| Parameter: | flags (int) – Flags
|
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | int | ||||||||||
| Returns: | The checksum. |
Even though a reference still exists while the ref count is greater than 0, its no garantuee that the object is still alive. Imagine you have a reference and the object is freed by an user interaction outside Py4D, so a method will raise an exception.
| Return type: | bool |
|---|---|
| Returns: | Returns True if the object is still alive, otherwise False |
Checks if this atom is an instance of a base type.
| Parameter: | id (int) – The type, for example Ocube. |
|---|---|
| Return type: | int |
| Returns: | True if the atom is an instance of the type id, otherwise False. |
Get the type of the atom. This must be used to make sure that the derived object really is of the right type before trying to access its members.
| Return type: | int |
|---|---|
| Returns: | The type, for example Ocube. |
Returns the base type of the object, e.g. for all objects Obase,*Mmat* for all tags Tbase etc.
| Return type: | int |
|---|---|
| Returns: | The base type. |
Copies all values from self to dst. The atoms must be of the same type!
| Parameters: |
|
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | bool |
||||||||||||||
| Returns: | True if the atom was copied. |
Clones the object and returns the reference.
| Parameter: | flags (int) – Flags for the clone.
|
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | C4DAtom | ||||||||||||||
| Returns: | Minimum of type atom. |