--- defocus.py 2018-06-30 23:57:12.000000000 +0200 +++ defocus_new.py 2018-08-22 22:35:18.000000000 +0200 @@ -108,6 +108,15 @@ material_object.specular_intensity = params["specular_intensity"] material_object.alpha = params["alpha"] +# Set view text to view +bpy.context.scene.objects.active = bpy.data.objects["Text"] +bpy.data.objects["Text"].select = True +bpy.ops.object.mode_set(mode='OBJECT') +bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY') +bpy.data.objects["Text"].location[0] = 0.0 +bpy.data.objects["Text"].location[2] = 0.0 +#bpy.ops.view3d.camera_to_view_selected() + # Set the render options. It is important that these are set # to the same values as the current OpenShot project. These # params are automatically set by OpenShot