Post #521:
Ja
📋 Metadata
- Author: roaoao
- Date: 2017-02-16 10:41:44
- Type:
answer - Quality Score: 7/10
- Reply to: post_00520
🏷️ Tags
popup-dialog python-scripting intermediate solved
⚙️ Related PME Features
- Popup Dialog Editor
- Python Scripting
💬 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)