Scripting - basic Item collection

Date : Tue, 14 Aug 2007 19:40:19 +0100
To : <XSI(at)Softimage.COM>
From : "Adam Seeley" <Adam.Seeley(at)primefocusworld.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


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.