Re: Scripting - accessing Partition materials in non active Passes

Date : Thu, 24 May 2007 10:41:14 -0700
To : XSI(at)Softimage.COM
From : "Steven Caron" <carons(at)gmail.com>
Subject : Re: Scripting - accessing Partition materials in non active Passes
.localproperties should give you what you want

On 5/24/07, Adam Seeley <adam.seeley(at)clearpost.co.uk> wrote:

Hi,

(in a nutshell)

Is there any way to access a Partitions Material when the Pass it belongs to isn't the Active one?



(not in a nutshell)

I'm creating a script that finds a the Material that has been assigned to a Partiton.
It's fine if the Pass is the current Pass, but is it possible to access a Partions Material if the Pass isn't the current one?

E.g.
Select a Partion in the current Pass with a Material applied and run

Set oSelection = application.selection(0)
logmessage "mat : " & oSelection.Material.Name

It will give you the Material name.
If you select a Partition that has a Material applied but it's Pass is not the current one, then the Material doesn't register (as per the Explorer view).

I could Set each Pass to Current as I go through them but that would slow the script a tad!


Thanks,

Adam.

(P.s. Still in VB land, but it probably won't matter.)


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.6 - Release Date: 20/05/2007 00:00


---
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.