=ID Property Script update and api bugfix=

Turned out somehow I managed to miss adding the proper
type refs in Blender.Types for IDGroupType and IDArrayType,
which made the script not work.  So, I've got it all fixed now.
Or at least hopefully :)
This commit is contained in:
2007-01-15 07:54:08 +00:00
parent 1645e8d287
commit 7a19fe19f6
5 changed files with 21 additions and 14 deletions

View File

@@ -24,6 +24,18 @@ class IDGroup:
del group['property']
To get the type of a property, use the type() operator, for example::
if type(group['bleh']) == str: pass
To tell if the property is a group or array type, import the Blender.Types module and test
against IDGroupType and IDArrayType, like so::
from Blender.Types import IDGroupType, IDArrayType.
if type(group['bleghr']) == IDGroupType:
(do something)
@ivar name: The name of the property
@type name: string
"""