Blender-Pipeline/studio/bpy_get_render_settings.py

23 lines
786 B
Python

# THIS FILE IS A PART OF VCStudio
# PYTHON 3
#############################################################################
# This file is going to output render setting from the blend file to our
# renderer. NOTE: This file is using BPY module that is running inside
# blender and is not going to run on standard python3.
#############################################################################
import bpy
# The following print() commands are going to be piped into VCStudio.
# You can extend the data by adding more lines here. Keep in mind that
# you have to also write support for the lines you add into the render layer.
# See:
# studio/studio_renderLayer.py
print("Start_frame :", bpy.context.scene.frame_start)
print("End_frame :", bpy.context.scene.frame_end)