Re: [script] models vs instances

Date : Tue, 20 Nov 2007 10:27:34 +0100
To : <XSI(at)Softimage.COM>
From : "peter boeykens" <peter_b(at)skynet.be>
Subject : Re: [script] models vs instances
I never thought of checking the instance group. This returns the group
under the source model, so I guess checking the parent of that group
will return the source model of the instance. Nice one.

Cheers
Bernard


tried it out and got it to work, something like this:

test if its a model with .type
   if it is, find childs and groups,
      if both their counts are at 0,
         find the owners
             for each owner
                  test if its a group
                      if so, test the owner of the group
                               if its a pass: bingo! we have an instance.
                               if it's a model: this is the master object.

its a totally OM way, ran it on a hundred instances in almost no time.


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.