See, simple....a thing of beauty!
Especially after hacking around with CreateObject( "XSI.Collection" ) for too long.
Many thanks,
Adam.
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM
> [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Stephen Blair
> Sent: 14 August 2007 20:00
> To: XSI(at)Softimage.COM
> Subject: RE: Scripting - basic Item collection
>
> GetValue(""Passes.Default_Pass.background_objects_partition")
> or
> Dictionary.GetObject()
>
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM
> [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Adam Seeley
> Sent: Tue 14 August 2007 2:40 PM
> To: XSI(at)Softimage.COM
> Subject: Scripting - basic Item collection
>
>
> Hi,
>
> I'm sure this is simple as simple can be, but I want to know
> the best way to collect a single Explicit Item in a Scene
> into an Object using Text.
>
> A collection is fine, I can do it like this:
>
> set oPartitionColl = CreateObject( "XSI.Collection" )
> oPartitionColl.SetAsText "Passes.Default_Pass.Partitions.*"
> logmessage oPartitionColl.count
>
> I want to do this to get a single Object rather than a
> collection a bit like this:
>
> set oPartition = CreateObject( "XSI.Item" )
> oPartition.SetAsText
> "Passes.Default_Pass.background_objects_partition"
>
> That doesn't work, but is there an equivalent?
>
> I'm in VB still by the way.
>
>
> Thanks a lot,
>
> Adam.
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date:
> 13/08/2007 10:15
>
>
> ---
> 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
>
> ______________________________________________________________________
> 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.476 / Virus Database: 269.11.17/951 - Release
> Date: 13/08/2007 10:15
>
>
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date: 13/08/2007 10:15
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi