Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_render.py
| Context not available. | |||||
| sub.prop(rd, "resolution_y", text="Y") | sub.prop(rd, "resolution_y", text="Y") | ||||
| sub.prop(rd, "resolution_percentage", text="") | sub.prop(rd, "resolution_percentage", text="") | ||||
| # show final resolution taking percentage into account | |||||
| resp = scene.render.resolution_percentage | |||||
| resx = round(scene.render.resolution_x * (resp/100)) | |||||
| resy = round(scene.render.resolution_y * (resp/100)) | |||||
| sub.label(text="%s x %s" % (resx, resy)) | |||||
| sub.label(text="Aspect Ratio:") | sub.label(text="Aspect Ratio:") | ||||
| sub.prop(rd, "pixel_aspect_x", text="X") | sub.prop(rd, "pixel_aspect_x", text="X") | ||||
| sub.prop(rd, "pixel_aspect_y", text="Y") | sub.prop(rd, "pixel_aspect_y", text="Y") | ||||
| Context not available. | |||||