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:
for part in props.rail_mat:
if part == self:
return props
return None
评论列表
文章目录