Skip to content

Commit

Permalink
Return the top most group name of an object
Browse files Browse the repository at this point in the history
  • Loading branch information
stgeorges committed May 30, 2014
1 parent 4e69847 commit e2541a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objectTopGroup.py
Expand Up @@ -19,7 +19,7 @@ def objectTopGroup(_id):
for i in range(rs.GroupCount()):
groupRO = sc.doc.Groups.GroupMembers(i)
for ele in groupRO:
if rs.coercerhinoobject(ele).Id == _id:
if ele.Id == _id:
groupName = groupNames[i]
if groupName:
print groupName
Expand Down

0 comments on commit e2541a9

Please sign in to comment.