As far as determining if the model is an instance or a real model,
it'd be interesting to see how does your approach performs compred to
getmaster().
Cheers
Bernard
On Nov 20, 2007 4:27 AM, peter boeykens <peter_b(at)skynet.be> wrote:
> > 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
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi