RE: [script] models vs instances

Date : Fri, 16 Nov 2007 14:10:26 -0500
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <Stephen_Blair(at)Softimage.COM>
Subject : RE: [script] models vs instances
- 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...

You can use these commands:
GetMaster
GetInstances

// Steve
// Team Lead, XSI Customer Support
// 
// See the XSI wiki for KB articles, FAQs, and more...
// softimage.wiki.avid.com/Category:Support


-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of peter boeykens
Sent: Friday, November 16, 2007 1:03 PM
To: XSI(at)Softimage.COM
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

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