Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getGroup(ob,exportList):
- '''
- checks if the object is part of a group-if it is use group label for layer name
- otherwise default to layer name '0'
- '''
- if (ob.TypeId == "App::DocumentObjectGroup"):
- return ob.Label
- else:
- if len(ob.InList)==0:
- return "0"
- else:
- return ob.InList[0].Label
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement