def register(): bpy.utils.register_class(VRayNodeTree) bpy.utils.register_class(MyCustomSocket) bpy.utils.register_class(VRayNodeBRDFVRayMtl) BRDFVRayMtl.add_properties(VRayNodeBRDFVRayMtl) bpy.utils.register_class(VRayNodeBRDFLayered) bpy.utils.register_class(VRayNodeOutput) bpy.utils.register_class(VRayNodesMenu) bpy.utils.register_class(VRAY_OT_add_nodetree) bpy.types.NODE_MT_add.append(vray_shader_nodes_menu)
def draw_buttons_ext(self, context, layout): BRDFVRayMtl.gui(context, layout, self.BRDFVRayMtl)
def draw_buttons(self, context, layout): layout.prop(self, 'showAll') if self.showAll: BRDFVRayMtl.gui(context, layout.box(), self.BRDFVRayMtl, node=self)