「Dev talk:Source/Blender/Data System/ID Property」の版間の差分
細 (moved Dev talk:Source/Blender/Data system/ID Property to Dev talk:Source/Blender/Data System/ID Property: oh dear... capital S! :/) |
(相違点なし)
|
2009年6月6日 (土) 18:48時点における版
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)