Blender 2.67.1 r57620
win7 64bit sp1
I replacing some code on “custom_nodes.py”[a template in Text Editor]
For testing pynode in each node_tree type. eg [‘Composite’, ‘Material’, ‘Texture’…].
Origin File Path:
/Blender Foundation/blender 2.6/2.67/scripts/templates_py/custom_nodes.py
Changing:
1:
class MyCustomTreeNode :
@classmethod
def poll(cls, ntree):
return ntree.bl_idname == 'CustomTreeType'
# To
class MyCustomTreeNode :
pass
2:
class MyNodeCategory(NodeCategory):
@classmethod
def poll(cls, context):
return context.space_data.tree_type == 'CustomTreeType'
# To
class MyNodeCategory(NodeCategory):
pass
So. We can get custom_node in each node_tree type.
There’s no waring Except “RNA_float_get: CustomSocketType.default_value not found.” in console.
Any suggestion for the right way?
Thanks!