I’m doing some test with template_curve_mapping.
I have write this code:
import bpy
class HelloWorldPanel(bpy.types.Panel):
bl_space_type = "VIEW_3D"
bl_label = "TEST"
bl_region_type = 'UI'
tag = bpy.props.FloatProperty()
def draw(self, context):
layout = self.layout
row = layout.row()
row.label(text="Hello world!", icon='WORLD_DATA')
row = layout.row()
layout.template_curve_mapping(self.tag, "curve", brush=True)
def register():
bpy.utils.register_class(HelloWorldPanel)
def unregister():
bpy.utils.unregister_class(HelloWorldPanel)
if __name__ == "__main__":
register()
But it does not work.
Where can I find an example or more information about the use of this control?