Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

AddGroup custom name not returned

$
0
0

@Ncik wrote:

G’day Everyone,

For some reason I cannot get the following grouping script to work. No group is created.

        group = rs.AddGroup(strName)
        #group = rs.AddGroup()
        if group:
            groupobjs = []
            for obj in borderSurf:
                groupobjs.append(obj)
            groupobjs.append(text)
            intg = rs.AddObjectsToGroup(groupobjs, group)

group has value of None
strName is a string

If I go with the default name method (commented out) it all works fine. A name is assigned to group.

Rhino 5 SR14

Thoughts?

regards,
Nick

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles