Thanks!
Stephen Blair wrote:
See here:
http://www.softimage.com/community/xsi/discuss/archives/xsi.archive.0412
/msg00467.htm
Or here is my version:
You cannot set the codec from scripting. The codec is a combination of
codec ID and a slew of private codec-specific parameters, not really a
human readable string.
The work-around for this is to set all the parameters in the UI, and
save the preset. Load the preset back by scripting anytime you need it.
To save a preset with the codec, first set the codec you want through
the Capture Viewport dialog box.
Then open an Explorer. Set the scope to Application, and then click on
Application > Data > Capture Options to open the Capture Options
property page. Save a preset from there. The preset will include the
codec.
(the codec is a hidden parameter: if you right-click the Capture Options
text in the PPG, you will get a pop-up menu with Edit and Refresh; click
Edit and you'll get the SPDL file for the property page; the help page
in the SDK help that you found is generated from that spdl file).
Steve
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Sascha Robitzki
Sent: April 27, 2006 6:55 AM
To: XSI(at)Softimage.COM
Subject: Re: Capture Viewport
What type of variant has the codec parameter? How can I retrieve the
value and how can I set it?
Thanks,
Sascha
Stephen Blair wrote:
I believe this has been answered several times on the list.
Here's a JScript snippet:
var vc = Dictionary.GetObject("ViewportCapture");
var startFrame = vc.NestedObjects.Item("Start Frame"); var endFrame =
vc.NestedObjects.Item("End Frame");
LogMessage( startFrame.Value );
LogMessage( endFrame.Value );
I'm sure someone will be along shortly with a better Python snippet...
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
Behalf Of Sascha Robitzki
Sent: April 26, 2006 10:22 AM
To: XSI-List
Subject: Capture Viewport
A simple question: How can a set the parameters for the Capture
Viewport dialog in the object model?
Cheers,
Sascha
---
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
|
begin:vcard
fn:Sascha Robitzki
n:Robitzki;Sascha
org:Trixter Film GmbH
adr:;;Amalienstr. 71;Munich;;80799;Germany
email;internet:s.robitzki(at)trixter.de
title:TD
tel;work:+49 (0)89 2870180
tel;fax:+49 (0)89 28701818
x-mozilla-html:FALSE
url:http://www.trixter.de
version:2.1
end:vcard