I am writing a script in blender and I wonder if anyone knows how to do this:
for the gui in blender.
row.template_image(<i>data</i>, <i>property</i>, <i>image_user</i>, <i>compact=False</i>)
Could you give an example of how to implement it please?
I have this code:
class Botones(bpy.types.Panel):
bl_label = "Title"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
def draw(self, context):
layout = self.layout
row = layout.row(align=True)
col = row.column()
col.alignment = 'EXPAND'
col.operator("object.custom_path")
col.prop(context.scene,"IBPath")
col.operator("test.test", text='test button')
data = bpy.data.textures
row.template_image(data, "name", data, compact=False)
thanks
data = bpy.data.textures['textureA']
row.template_image(data, 'image', data.image_user) #compact is false by default
Thank you very much!!!
Happy to help. Blend on…