Package bpy :: Module types :: Class ID
[hide private]
[frames] | no frames]

Class ID


The ID Object

Base type for datablocks, defining a unique name, linking from other libraries and garbage collection.

References

Instance Methods [hide private]
ID
copy()
Create a copy of this datablock (not supported for all datablocks).
AnimData
animation_data_create()
Create animation data to this ID, note that not all ID types support this.
 
animation_data_clear()
Clear animation on this this ID.
Instance Variables [hide private]
boolean fake_user
Saves this datablock even if it has no users
Library (readonly) library
Library file the datablock is linked from.
string name
Unique datablock ID name.
boolean tag
Tools can use this to tag data, (initial state is undefined).
int (readonly) in [0, 32767] users
Number of times this datablock is referenced.
Method Details [hide private]

copy()

 

Create a copy of this datablock (not supported for all datablocks).

Returns: ID
New copy of the ID.

animation_data_create()

 

Create animation data to this ID, note that not all ID types support this.

Returns: AnimData
New animation data or NULL.

Instance Variable Details [hide private]

name

Unique datablock ID name. (maximum length of 22)
Type:
string