Created
April 2, 2013 00:41
-
-
Save chadcooper/5289034 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_render_quality(in_quality): | |
""" | |
Takes a human-friendly render output quality and translates it into the | |
respective Vue setting. | |
""" | |
quality_dict = {"Preview" : VuePython.PRS_Preview, | |
"Final" : VuePython.PRS_Final} | |
if in_quality in quality_dict.keys(): | |
vue_qual_code = quality_dict[in_quality] | |
else: | |
vue_qual_code = VuePython.PRS_Preview | |
return vue_qual_code | |
def render_image(render_quality): | |
""" Renders main view out to jpeg """ | |
SetRenderOutput(VuePython.RO_Disk, out_file) | |
SetRenderQuality(get_render_quality(render_quality)) | |
SetPictureWidth(1920) | |
Render(True) | |
CloseRenderDialog() | |
Refresh() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment