# scene.makeCurrent() # If already current, this is not slow.
# context = scene.getRenderingContext()
orig_frame=scene.frame_current
ifEXPORT_ALL_SCENES:# Add scene name into the context_name
context_name[1]='_%s'%bpy.path.clean_name(scene.name)# WARNING, its possible that this could cause a collision. we could fix if were feeling parranoied.
ifEXPORT_ALL_SCENES:# Add scene name into the context_name
context_name[1]='_%s'%bpy.path.clean_name(scene.name)# WARNING, its possible that this could cause a collision. we could fix if were feeling parranoied.
# Export an animation?
ifEXPORT_ANIMATION:
scene_frames=range(scene.frame_start,scene.frame_end+1)# Up to and including the end frame.
scene_frames=range(scene.frame_start,scene.frame_end+1)# Up to and including the end frame.
else:
scene_frames=[orig_frame]# Dont export an animation.
scene_frames=[orig_frame]# Dont export an animation.
# Loop through all frames in the scene and export.