Ejemplo n.º 1
0
def set_scene_from_args(scene):
    args = argconfig.get_args()
    if args.fps:
        scene.render.fps = args.fps
    if args.resolution:
        x, y = args.resolution
        scene.render.resolution_x = x
        scene.render.resolution_y = y
    if args.viewtransform:
        scene.view_settings.view_transform = args.viewtransform
    if args.colordepth:
        scene.render.image_settings.color_depth = args.colordepth
    if args.output:
        scene.render.filepath = args.output
Ejemplo n.º 2
0
def _get_textoverlays():
    args = argconfig.get_args()
    textoverlays = [dict(i) for i in args.textoverlay]
    return textoverlays
Ejemplo n.º 3
0
import bpy
import os
from clip_editor import utils
from clip_editor import argconfig
from clip_editor.blender.modules.scene import set_scene_from_args

args = argconfig.get_args()

data = bpy.data
movieclips = data.movieclips
context = bpy.context
scene = context.scene

IMAGE_FORMATS = {
    '.jpg': 'JPEG',
    '.jpeg': 'JPEG',
    '.exr': 'OPEN_EXR',
    '.tif': 'TIFF',
    '.tga': 'TARGA',
}


def process():
    # Remove all objects
    for obj in data.objects:
        data.objects.remove(obj)

    # Set Sequencer
    if not scene.sequence_editor:
        scene.sequence_editor_create()
    sequences = scene.sequence_editor.sequences