Module Object :: Class Property
[frames] | no frames]

Class Property

The Property object

This property gives access to object property data in Blender, used by the game engine.


Warning: Comparisons between properties will only be true when both the name and data pairs are the same.

Instance Methods
string
getName()
Get the name of this property.
 
setName(name)
Set the name of this property.
string, int, or float
getData()
Get the data for this property.
 
setData(data)
Set the data for this property.
string
getType()
Get the type for this property.
Instance Variables
  data
Data for this property.
  name
The property name.
  type
The property type.
Method Details

getName()

 

Get the name of this property.

Returns: string
The property name.

setName(name)

 

Set the name of this property.

Parameters:
  • name (string) - The new name of the property

setData(data)

 

Set the data for this property.

Parameters:
  • data (string, int, or float) - The data to set for this property.

Warning: See object.setProperty(). Changing data which is of a different type then the property is set to (i.e. setting an int value to a float type' property) will change the type of the property automatically.


Instance Variable Details

data

Data for this property. Depends on property type.