Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Getting the Image Format from Render Options through scripting.

Getting the Image Format from Render Options through scripting.

2005-04-13       - By kim aldis

 Back
Reply:     1     2     3     4     5     6     7     8     9  

Actually, rather than reams of case statements, use reference arrays in
Jscript or dictionaries in Python. Pr-populate the dictionary with key/value
pairs then just extract. Easier to maintain than cases.

> -- --Original Message-- --
> From: owner-xsi@(protected)
> [mailto:owner-xsi@(protected)] On Behalf Of Not Maya
> Sent: 13 April 2005 15:29
> To: XSI@(protected)
> Subject: Re: Getting the Image Format from Render Options
> through scripting.
>
> Todd, Kim et all
>
> Yeah ... this is a simple case statement function. I was
> about to go that way myself. Pretty unbelievable that there
> is no property you can reference that will puill the actual data.
>
> oh well.
>
> No big deal.
>
> NM
>
> >From: todd akita <takita@(protected)>
> >Reply-To: XSI@(protected)
> >To: XSI@(protected)
> >Subject: Re: Getting the Image Format from Render Options through
> >scripting.
> >Date: Tue, 12 Apr 2005 17:33:22 -0400
> >
> >oops, it's called "image format helper", it might be missing
> a few of
> >the newer fileformats but it's a decent start.
> >
> >-T
> >
> >
> >Not Maya wrote:
> >
> >>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
> >>
> >>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
> >>Dont 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
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/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