RE: Scripting : Referenced Model owner
| Date : Fri, 1 Jun 2007 18:35:33 +0100 |
| To : <XSI(at)Softimage.COM> |
| From : "Adam Seeley" <adam.seeley(at)clearpost.co.uk> |
| Subject : RE: Scripting : Referenced Model owner |
Hi,
I found that, but that will tell me the immediate Model
that the object is within.
I have objects nested beneath Models beneath Models etc.
all wrapped up in a large Referenced Model at the top.
It's the Top Referenced Model that I'm
after.
I'm sure the items floating around in there
somewhere.
If I try to alter a Property deep within the Referenced
Model under various other models, it will spit this back pretty
quickly.
'ERROR : 2103 - Objects in referenced model Referenced_MASTER_MODEL_V1 cannot be modified.
and mention the top Referenced Model rather than the items
immediate Model.
Adam.
In the ProjectItem class (and all its childs like SceneItem, X3DObject, ...), you can find the 'Model' property.
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Christopher Crouzet
Sent: 01 June 2007 18:21
To: XSI(at)Softimage.COM
Subject: Re: Scripting : Referenced Model owner
The code in VBScript :
set topModel = oObject.Model
Christopher.
On 6/1/07, Adam Seeley <adam.seeley(at)clearpost.co.uk> wrote:Hi,Does anyone know how to find out which Referenced Model an Object belongs to or is within?I guess it's something along the lines of oObject.Parent but more like to be oObject.ReferenceModelOwnerLooking at the docs, but still finding the navigation a bit tough when looking for specifics.Many thanks,Adam.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.5/826 - Release Date: 31/05/2007 16:51
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.5/826 - Release Date: 31/05/2007 16:51
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.5/826 - Release Date: 31/05/2007 16:51
- Follow-Ups:
- Re: Scripting : Referenced Model owner
- From: "Christopher Crouzet" <christopher.crouzet(at)gmail.com>
- Re: Scripting : Referenced Model owner
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- Re: Scripting : Referenced Model owner
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: SPM failing on Win64
- Next by Date: Re: SPM failing on Win64
- Previous by Thread: Re: SPM failing on Win64
- Next by Thread: Re: SPM failing on Win64
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |