Blender Asked by Michael Holmes on January 17, 2021
I’m looking for a way to have a dynamic amount of string properties.
currently I have setup an array which appends a bunch of string properties to a list, this is all fine and well except i can’t place the property in the layout due to it not having an identifier (well not that i know of).
for _ in self.MATERIAL_LIST:
self.TEXTURE_PROPERTIES.append(props.StringProperty(name=_, description='{} texture'.format(_)))
imageBox.prop(self.properties, 'TEXTURE_PROPERTIES')
above you can see I have a Material list which is a list of all the names of the materials
I wish to place each elemt of the array in a UIlayout box called ‘imageBox’
any help is appreciated and even alternative or more efficent ideas would be appreciated.
EDIT:imageBox.prop(self.properties, 'TEXTURE_PROPERTIES')
causes an error as TEXTURE_PROPERTIES property cannot be found
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP