📋 Metadata

💬 Content

Jakro:

I’m trying to add UV Maps Widget to a panel now and have tried using the edit source like you advised. Could you tell me where I’ve gone wrong? Here’s the two attempts I’ve made:
L.template_list(“MESH_UL_uvmaps_vcols”, “uvmaps”, C.me, “uv_textures”, C.me.uv_textures, “active_index”, rows=1)
and
L.template_list(“MESH_UL_uvmaps_vcols”, “uvmaps”, me, “uv_textures”, me.uv_textures, “active_index”, rows=1)

In some cases you have to modify the code. In this case you need to add: me = C.active_object.data;

me = C.active_object.data; L.template_list("MESH_UL_uvmaps_vcols", "uvmaps", me, "uv_textures", me.uv_textures, "active_index", rows=1)

🔗 View on Blender Artists