- 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