RE: Scripting - accessing Partition materials in non active Passes
| Date : Fri, 25 May 2007 14:12:03 +0100 |
| To : <XSI(at)Softimage.COM> |
| From : "Adam Seeley" <adam.seeley(at)clearpost.co.uk> |
| Subject : RE: Scripting - accessing Partition materials in non active Passes |
Hi,
Cool, did the job.
Thanks for the help guys.
Adam.
.localproperties should give you what you want
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Steven Caron
Sent: 24 May 2007 18:41
To: XSI(at)Softimage.COM
Subject: Re: Scripting - accessing Partition materials in non active Passes
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
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: Passing arguments to Python script in batch
- Next by Date: Re: Passing arguments to Python script in batch
- Previous by Thread: Re: Passing arguments to Python script in batch
- Next by Thread: Re: Passing arguments to Python script in batch
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |