=== Blender Python API ===
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 20 Oct 2008 12:33:31 +0000 (12:33 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 20 Oct 2008 12:33:31 +0000 (12:33 +0000)
commit47345cfd780a469bca4507d9b8d8f16dc56a2022
treebfe7aeb3a9db7c879de13fd254d1fc24cb109c94
parent25859cf1f76d5c2363672bf17f5e328455d1f6af
=== Blender Python API ===

After some discussion with Campbell, changed the way cstruct sizeof is fetched.

Moved DataSize() to Blender.Types.CSizeof(Blendertype). Supported types return sizeof(data struct), otherwise -1.

To quickly check what types are supported:

import Blender.Types as bt
x = dir(bt)
for t in x:
if t[0] != '_':
s = 'bt.CSizeof(bt.' + t + ')'
print t,"=", eval(s)
source/blender/python/api2_2x/Armature.c
source/blender/python/api2_2x/Material.c
source/blender/python/api2_2x/Mesh.c
source/blender/python/api2_2x/Object.c
source/blender/python/api2_2x/Types.c