Re: Capture Viewport
| Date : Thu, 27 Apr 2006 15:38:50 +0200 |
| To : XSI(at)Softimage.COM |
| From : André Adam <a_adam(at)49games.de> |
| Subject : Re: Capture Viewport |
Cheers!
-André
Bernard Lebel wrote:
Adam, how did you find those values?
Bernard
On 4/27/06, André Adam <a_adam(at)49games.de> wrote:
Now, it is kind of possible to set a codec using that string, but if you're multi-platform you have to take care of the string differences. So, it works, but it certainly looks ugly... ;))
(This is the version for the FXTree File Output node...)
//Decide for video codec string, platform sensitive if(Application.Platform == "Win64"){ if(oUnCompress){ oFXOutOp.Parameters("codec").Value = "YAAAAAEAAAAAAAAAAAAAAHZpZGNESUIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAACwBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; } else{ oFXOutOp.Parameters("codec").Value = "YAAAAAEAAAAAAAAAAAAAAHZpZGNtc3ZjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAACwBAAAoIwAAAAAAAAAAAACQGNIcAAAAAAQAAAAAAAAA"; } } if(Application.Platform == "Win32"){ if(oUnCompress){ oFXOutOp.Parameters("codec").Value = "QAAAAAEAAAAAAAAAdmlkY0RJQiAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAsAQAAECcAAAAAAAAAAAAAAAAAAA=="; } else{ oFXOutOp.Parameters("codec").Value = "QAAAAAEAAAAAAAAAdmlkY21zdmMAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAKCMAAAAAAAC4rH0RBAAAAA=="; } }
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
--- 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
- Follow-Ups:
- Re: Capture Viewport
- From: Sascha Robitzki <s.robitzki(at)trixter.de>
- Re: Capture Viewport
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- Re: Capture Viewport
- References:
- RE: Capture Viewport
- From: "Stephen Blair" <Stephen_Blair(at)Softimage.COM>
- Re: Capture Viewport
- From: André Adam <a_adam(at)49games.de>
- Re: Capture Viewport
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- RE: Capture Viewport
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: Animating falling paper
- Next by Date: Re: Animating falling paper
- Previous by Thread: Re: Animating falling paper
- Next by Thread: Re: Animating falling paper
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |