Re: {scripting] pass object in Python using Object Model

Date : Thu, 10 Aug 2006 11:37:12 -0400
To : XSI(at)Softimage.COM
From : "Bernard Lebel" <3dbernard(at)gmail.com>
Subject : Re: {scripting] pass object in Python using Object Model
Use the NestedObjects collection generic attribute to access these things. Ex:

for oThing in oPass.NestedObjects:
  Application.LogMessage( oThing.FullName )


Cheers Bernard



On 8/10/06, Greg Smith <greg(at)stanwinston.com> wrote:
I am curious about this, I want to get a pass and access the Properties
and Parameters of that pass using the Object Model.

what I am trying to avoid is copious use of the following syntax:
Application.SetValue("Passes." + myPass + ".RenderOptions.PixelRatio",
1, null)

So e.g. lets say I get the current pass object using:
myPass = Application.ActiveProject.ActiveScene.ActivePass

It seems that when I get the pass object the only parameter that I am
able to access on a pass object is '.Name', and I can't seem to get
anything else.

So if anyone knows the answer to my dilemma, feedback will be much
obliged!

Greg



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


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.