[script] models vs instances

Date : Fri, 16 Nov 2007 19:02:58 +0100
To : <XSI(at)Softimage.COM>
From : "peter boeykens" <peter_b(at)skynet.be>
Subject : [script] models vs instances
hi all,

is there any OM ways to:
create instances?
detect wether a model is an instance?
find the model the instance originates from?

my results so far are:
- instances are the same as models, as far as .type, typename and classname are concerned.
- instances by default have 0 groups and 0 children
that's not a guarantee though: models usually have some children, but an empty model doenst, and an instance can have children. models can have zero groups too.
- instances have two interesting owners: the instance group, and a partition
models cannot have an owner that is a partition I think. the instance group itself is an altogether normal group, nothing to differentiate it from another group.
- And how to find the master object from the instance? Go to owners, find all groups, and test if the groups belong to models? Its still no guarantee...


So that means a lot of things to test for, and most criteria can have exceptions, and its all very indirect/cumbersome.
Surely there must be some more straigthforward ways I am overlooking?



--- 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.