Contradictory to its name, the AddMember() method can add multiple member*s*to a group if you feed it a collection.
Instead of adding one by one, prepare an XSICollection object with what the group needs, and call AddMember() once per group. That should be pretty quick. On Mon, Sep 30, 2013 at 2:26 PM, Tim Crowson <[email protected] > wrote: > I'm working on a tool that requires that I group many polymeshes together > (hundreds of polymesh items). In most cases, the group I want to place them > in will already exist. I'm currently getting the group, looping over the > meshes, and using AddMember(). But that is killing my performance. The odd > thing is that if the Group doesn't exist, my code creates the group first, > then adds the meshes, and it's done in a split second. Any insight into > best practices for adding meshes to groups? > -- > > > > *Tim Crowson > **Lead CG Artist* > > *Magnetic Dreams, Inc. > *2525 Lebanon Pike, Building C. Nashville, TN 37214 > *Ph* 615.885.6801 | *Fax* 615.889.4768 | www.magneticdreams.com > [email protected] > > *Confidentiality Notice: This email, including attachments, is > confidential and should not be used by anyone who is not the original > intended recipient(s). If you have received this e-mail in error please > inform the sender and delete it from your mailbox or any other storage > mechanism. Magnetic Dreams, Inc cannot accept liability for any statements > made which are clearly the sender's own and not expressly made on behalf of > Magnetic Dreams, Inc or one of its agents.* > > > > -------------------------- > To unsubscribe: mail [email protected] with subject > "unsubscribe" and reply to the confirmation email. >
-------------------------- To unsubscribe: mail [email protected] with subject "unsubscribe" and reply to the confirmation email.

