「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! :/) |
細 (1版 をインポートしました) |
(相違点なし)
|
2018年6月29日 (金) 02:50時点における最新版
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)