Aha! I missed that, but that makes sense. I'll give that a shot. Thanks
Alan.
-Tim
On 9/30/2013 1:37 PM, Alan Fregtman wrote:
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
<tim.crow...@magneticdreams.com
<mailto:tim.crow...@magneticdreams.com>> 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 <tel:615.885.6801> | *Fax* 615.889.4768
<tel:615.889.4768> | www.magneticdreams.com
<http://www.magneticdreams.com>
tim.crow...@magneticdreams.com <mailto:tim.crow...@magneticdreams.com>
/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 softimage-requ...@listproc.autodesk.com
<mailto:softimage-requ...@listproc.autodesk.com> with subject
"unsubscribe" and reply to the confirmation email.
--------------------------
To unsubscribe: mail softimage-requ...@listproc.autodesk.com with subject
"unsubscribe" and reply to the confirmation email.
--
Signature
*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
tim.crow...@magneticdreams.com
/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 softimage-requ...@listproc.autodesk.com with subject
"unsubscribe" and reply to the confirmation email.