I have a collection property and I am trying to figure out how to set the default list. This is what I have so far. I know that this code does not work at the monument.
class BaseColorList(bpy.types.PropertyGroup):
name: bpy.props.StringProperty(
name="Name",
description="Name of tag",
items = ('diffuse', 'diff', 'albedo', 'base', 'col', 'color'))
This is how I am assigning those values currently.
for i in range(len(BaseColor)):
context.scene.BaseColor_list.add()
bpy.context.scene.BaseColor_list[i].name = BaseColor[i]
I am wanting this collection to have a default list when the addon is register but I cant figure out how.