def find_in_selection(self, context):
"""
find witch selected object this instance belongs to
provide support for "copy to selected"
"""
selected = [o for o in context.selected_objects]
for o in selected:
props = archipack_roof.datablock(o)
if props and props.axis == self:
return props
return None
评论列表
文章目录