Can someone take a look at this code and tell me why it fails in V6? It runs fine in V5. Is there a bug, or did something change with regard to the grouping methods?
import rhinoscriptsyntax as rs
name = rs.AddGroup()
object_ids = rs.GetObjects("Select objects to add to group")
if object_ids:
rs.AddObjectsToGroup(object_ids, name)
if rs.IsGroup(name):
print name
objects = rs.ObjectsByGroup(name, True)
Here is a screen shot of it failing in my script (every script with ObjectsByGroup has this issue):