Message 1 of 12
Groups and single objects Q

Not applicable
10-12-2007
11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
How can i loop over my scene objects and print names with the following conditions:
1.If its a single object, just print the object name
2. If its a group, only print the the "top group" name (not groups within groups or the
member names)
When I run a loop **- for o in objects do print o.name -** I get single object as
well as groupmembers. And when I loop over the helpers where isGroupHead, I get
the groups (and the groups inside groups....)
Any help would be greatly appreciated 🙂
BR
Aplomo
How can i loop over my scene objects and print names with the following conditions:
1.If its a single object, just print the object name
2. If its a group, only print the the "top group" name (not groups within groups or the
member names)
When I run a loop **- for o in objects do print o.name -** I get single object as
well as groupmembers. And when I loop over the helpers where isGroupHead, I get
the groups (and the groups inside groups....)
Any help would be greatly appreciated 🙂
BR
Aplomo