  | | | Getting the Image Format from Render Options through scripting. | Getting the Image Format from Render Options through scripting. 2005-04-12 - By kim aldis
Back You'll need to write a function to do the translation for you. It's not so hard to rip through the types and grab the ids, albeit a bit o a pain.
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Not Maya > Sent: 12 April 2005 22:04 > To: xsi@(protected) > Subject: Getting the Image Format from Render Options through > scripting. > > Hey Guys, > > I am writing a small script that requires me to get the image > format from the render-options of a selected pass. > > When I use teh following code I get the class-id of the image > format not the extension (pic,tga,sgi). > I could write a case statement to handle all tehoptions but > there has to be a way to get to the actual image extension > don't you think ? > > Here is the line of code I am talking about. > > oImageFormat = GetValue("Passes.") & oPassName.name & > ".RenderOptions.Image.Format") > > This returns {32D3C205-0E3B-11CF-AFA9-00AA00629284} which > looks like a class-id to me. > > Thanks > > NM > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |