naming changes
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
This commit is contained in:
@@ -215,7 +215,7 @@ def thumbnail(filename):
|
||||
scene = bpy.data.scenes[0] # FIXME, this is dodgy!
|
||||
scene.render.file_format = "JPEG"
|
||||
scene.render.file_quality = 90
|
||||
bpy.ops.image.open(path = filename)
|
||||
bpy.ops.image.open(filepath=filename)
|
||||
img = bpy.data.images[imagename]
|
||||
img.save_render(thumbname, scene=scene)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user