The base class of many other classes.
Check if two different objects point to the same object.
Note
Does not compare if two different objects are equal.
Return type: | bool |
---|---|
Returns: | True if the objects point to the same object, otherwise False. |
New in version R13.016.
Returns the atom if it is alive or None if the atom is dead. This is a convenient way to know if you can still use the object.
Return type: | C4DAtom |
---|---|
Returns: | The atom if it is still alive, otherwise None. |
Returns the ownership. Normally you don’t need this method.
Return type: | bool |
---|---|
Returns: | True if Python owns the object, False if CINEMA 4D owns it. |
Sets the dirty checksum, the one returned by GetDirty().
Parameters: |
flags (int) –
Flags
|
---|
Gets the dirty checksum for the object. This can be used to check if the object has been changed.
Parameters: |
flags (int) –
Flags
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | int | ||||||||||
Returns: | The checksum. |
Even though a reference to an object still exists, the object might be freed by an user interaction. Normally not needed.
Return type: | bool |
---|---|
Returns: | True if the object is still alive, otherwise False |
Checks if this atom is an instance of a base type.
Parameters: | 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, for all materials Mmat, for all tags Tbase etc.
Return type: | int |
---|---|
Returns: | The base type. |
Sends a message to the atom only.
Note
Some notification messages are automatically passed along to branches: MSG_POINTS_CHANGED, MSG_POLYGONS_CHANGED and MSG_SEGMENTS_CHANGED. This is for convenience and historical reasons.
Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
bool |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
Depends on the message type. |
New in version R13.016.
Sends a message to the atom and to its children, parents or branches, depending on flags.
Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
bool |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
Depends on the message 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.
Parameters: |
flags (int) –
Flags for the clone.
|
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | C4DAtom | ||||||||||||||
Returns: | Minimum of type atom. |
New in version R13.016.
Writes the atom to a HyperFile.
Note
This is the function to use if you have opened the hyper file yourself and are writing the object manually. If writing within a plugin function where CINEMA 4D has passed the hyper file you should use WriteObject().
Note
The methods Read(), Write(), ReadObject() and WriteObject() are generally not recommended for plugins.
Parameters: | hf (HyperFile) – The hyperfile to write to. |
---|---|
Return type: | bool |
Returns: | True if the atom was written, otherwise False. |
New in version R13.016.
Reads to this atom from a HyperFile, manually specifying ID and level.
Note
This is the function to use if you have opened the hyper file yourself and are reading the object separately. If reading within a plugin function where CINEMA 4D has passed the hyper file you should use ReadObject().
Note
The methods Read(), Write(), ReadObject() and WriteObject() are generally not recommended for plugins.
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
True if the atom was read, otherwise False. |
New in version R13.016.
Writes this atom to a HyperFile, within another write operation.
Note
This is the function to use where CINEMA 4D has passed the hyper file you should use, for example in a plugin hook. Otherwise you should use Write().
Note
The methods Read(), Write(), ReadObject() and WriteObject() are generally not recommended for plugins.
Parameters: | hf (HyperFile) – The hyperfile to write to. |
---|---|
Return type: | bool |
Returns: | True if the atom was written, otherwise False. |
New in version R13.016.
Reads to this atom from a HyperFile within another read operation.
Note
This is the function to use where CINEMA 4D has passed the hyper file you should use, for example in a plugin hook. Otherwise you should use Read().
Note
The methods Read(), Write(), ReadObject() and WriteObject() are generally not recommended for plugins.
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
True if the atom was read, otherwise False. |