When python script title 3d crash display no file found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenShot Video Editor |
New
|
Undecided
|
Unassigned |
Bug Description
When a python command returns an error, the interface displays a generated file picture not found.
I propose a debug patch that generates an image with the error, the line of code concerned and the system information useful for debugging.
We should create folder openshot into scripts openshot application.
Example path with manjaro :
/usr/lib/
put file debug.py into directory /usr/lib/
create file __init__.py :
sudo touch /usr/lib/
Import can be do like this into 3DTitleScript.py:
import bpy, os, sys
directory = os.path.
if not directory in sys.path:
sys.
from debug import print_error
And for use :
#INJECT_PARAMS_HERE
# The remainder of this script will modify the current Blender .blend project
# file, and adjust the settings. The .blend file is specified in the XML file
# that defines this template in OpenShot.
#------
# Modify Text / Curve settings
try:
…
my blender code
pirnt("bug") #error code
…
except Exception as E:
print_
# Render the current animation to the params[
bpy.ops.
Now when we preview the image the blender errors of python commands are viewable by the user.