Dev talk:Source/Blender/Data System/ID Property

提供: wiki
移動先: 案内検索

When I run your original example code I get :

File "Text.002", line 9, in ? KeyError: 'key not in subgroup dict'

referring to the line : mat.properties['SomeRenderer']['TransFac'] = 0.0

It works if I add this line ahead of it:

mat.properties['SomeRenderer']= {}

Mike (I edited the page to reflect this)

btw a

dir(mat.properties)

returns nothing

and a

 print type(mat.properties)

crashes Blender (CVS 2006-11-29)

--Mstram 17:33, 29 November 2006 (CET)