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

Class Property

source code

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 [hide private]
string
getName()
Get the name of this property.
source code
 
setName(name)
Set the name of this property.
source code
string, int, or float
getData()
Get the data for this property.
source code
 
setData(data)
Set the data for this property.
source code
string
getType()
Get the type for this property.
source code
Instance Variables [hide private]
  data
Data for this property.
  name
The property name.
  type
The property type.
Method Details [hide private]

getName()

source code 
Get the name of this property.
Returns: string
The property name.

setName(name)

source code 
Set the name of this property.
Parameters:
  • name (string) - The new name of the property

setData(data)

source code 
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 [hide private]

data

Data for this property. Depends on property type.