I also tried adding the registration of the bottom 3 to register part in the main addon but it doesnt work as well. Item.name = " ".join((str(i), matname, matpath)) # _update_pre.remove(collhack)įor i, (matname, matpath) in enumerate(checkRelinkTheaExtMat(), 1): Layout.template_list("COLL_UL_search", "", context.scene, "col_item", context.scene, "col_idx") """Creates a Panel in the Material Tab"""īl_idname = "OBJECT_PT_relink_missing_materials" Row.label(text="Missing link!", icon='ERROR')Ĭlass RelinkMissingMaterials(): If (os.path.exists(os.path.abspath((('thea_extMat')))))=False: Row.operator("open.thea_files", text="", icon='FILESEL')
Layout.matname("Yeah all material linked") # Note "data" names should never be translated! # We use icon_value of matname, as our given icon is an integer value, not an enum ID. # this will also make the row easily selectable in the list! The later also enables ctrl-click rename. # You should always start your row layout by a matname (icon + text), or a non-embossed text field, ("Some text", "Some more descriptive explanation"),ĭef draw_item(self, context, layout, data, item, icon, active_data, active_propname):
("Option B", "You can find this by searching for 'roflmao'"), ("Option A", "The first option, can be found by searching '1' as well"),
THEA RENDER MISSING TRACKBACK BLENDER CODE
Ive found this code and works fine when a scene i open and used in text area to register it. Im trying to figure out why this CollectionProperty which has a PropertyGroup for a custom UI list, doesnt want to load from from blender startup.