Re: scripting the viewport catpure

Date : Mon, 30 Jun 2008 15:33:00 -0700
To : XSI(at)Softimage.COM
From : Sam Cuttriss <cuttriss(at)whiskytree.com>
Subject : Re: scripting the viewport catpure
thanks for the link.
ive got a custom preference im trying to get values from. (not capture settings, but its comparable)
its called "Wt_Preferences" and the parameter im after is called "VersionDelimiter"
but im going insane trying to get the value through the object model.
here is what im doing

oWTOptions = xsi.Dictionary.GetObject( "preferences.Wt_Preferences" )
oV = oWTOptions.NestedObjects.Item("VersionDelimiter").Value
log (oV)


this is the fun error i get.

# ERROR : Traceback (most recent call last):
#   File "<Script Block >", line 29, in ?
#     oV = oWTOptions.NestedObjects.Item("VersionDelimiter").Value
# TypeError: 'NoneType' object is not callable
#  - [line 29]


weird thing is i can iterate through the parameters and it returns:
# INFO : Scene options = VersionDelimiter : _V

just like it should.
any ideas?


Stephen Blair wrote:
http://softimage.wiki.avid.com/index.php/Category:Scripting#Scripting_Vi
ewport_Captures 

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Sam Cuttriss
Sent: Mon 30 June 2008 4:43 PM
To: XSI(at)Softimage.COM
Subject: Re: scripting the viewport catpure

oh and dont forget the line:
app = Application

hey how do you get these values with the object model?


Martin Matzeder wrote:
  
ha, that's funny. thanks
cheers martin

Sam Cuttriss schrieb:
    
ah, i was  just doing that.

vp = app.Dictionary.GetObject('ViewportCapture')

#set ViewportCapture settings
app.SetValue("ViewportCapture.Filename", oOutPut, "") 
app.SetValue("ViewportCapture.ImageWidth", oWidth, "") 
app.SetValue("ViewportCapture.ImageHeight", oHeight, "") 
app.SetValue("ViewportCapture.Padding", "(fn).#(ext)", "") 
app.SetValue("ViewportCapture.UserPixelRatio", 0, "") 
app.SetValue("ViewportCapture.WriteAlpha", 1, "") 
app.SetValue("ViewportCapture.CaptureAudio", 0, "") 
app.SetValue("ViewportCapture.Start", oFrame, "") 
app.SetValue("ViewportCapture.End", oFrame, "") 
app.SetValue("ViewportCapture.LaunchFlipbook", 0, "") 
app.SetValue("ViewportCapture.IsMovie", 0, "") 
app.SetValue("ViewportCapture.CustomTimeRange", 0, "") 
#app.SetValue("ViewportCapture.Codec", 0, "") 
app.SetValue("ViewportCapture.LaunchFlipbook", 0, "")

Martin Matzeder wrote:
      
how can I set the various parameters of the viewport capture with 
scripting ( like format, path and so on)?

Application.CaptureViewport( 2, True ) seems quite limited

martin

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

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

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