RE: How do I know a model is an instance

Date : Tue, 30 Aug 2005 23:03:49 -0400
To : <XSI(at)Softimage.COM>
From : Martin Bélanger <martinb(at)Softimage.COM>
Subject : RE: How do I know a model is an instance
looks like executecommand is the way.
// GetMaster
CValue GetMaster( const CValue& in_inputobjs )
{
 CValueArray args(1);
 CValue retval;
Application app;
 long i(0);
 
 args[i++]= in_inputobjs;
 
 CStatus st = app.ExecuteCommand( L"GetMaster", args, retval );
 
 return retval;
}
 
returns a XSICollection, so should be inside a CValueArray
-Martin

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Hans,Veenendaal,AMplus R&D,SOJ
Sent: Tuesday, August 30, 2005 6:36 AM
To: XSI(at)Softimage.COM
Subject: RE: How do I know a model is an instance

Is there a C++ equivalent of GetMaster or is ExecuteCommand the only option.
 
Hans.


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of kim aldis
Sent: Tuesday, August 30, 2005 6:06 PM
To: XSI(at)Softimage.COM
Subject: RE: How do I know a model is an instance

But then you've already done something pretty daft so I'd think that's the least of your worries. ;)


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Helge Mathee
Sent: 30 August 2005 09:34
To: XSI(at)Softimage.COM
Subject: Re: How do I know a model is an instance

here's a funny one though,
 
what if the model (master) for the instance got deleted... then GetMaster doesn't return
anything either.... aye aye...
----- Original Message -----
Sent: Tuesday, August 30, 2005 08:53
Subject: RE: How do I know a model is an instance

Application.GetMaster(obj) 
 
That was it!
 
I did it ones before, but I thought it was a function on the object that would tell me.
 
Thanks!
 
Hans.


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of kim aldis
Sent: Tuesday, August 30, 2005 3:34 PM
To: XSI(at)Softimage.COM
Subject: RE: How do I know a model is an instance

try calling getmaster() on the model. if it returns something it's an instance else it's just a model


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Hans,Veenendaal,AMplus R&D,SOJ
Sent: 30 August 2005 07:24
To: XSI(at)Softimage.COM
Subject: How do I know a model is an instance

Hello,
 
I'm really cracking my head on this one.
 
I have a scene with instances and I want to know which of the models are instances. It should be easy, but I just cannot seem to put my finger on it.
 
Bot the instance model and the original model return "#model" as type.
 
Hans.
 

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.