1
$\begingroup$

How can I add background images for different views (Top, Front, Back...) from a script/addon in Blender 2.8?

The documentation does not specify a lot:

bpy.ops.object.load_background_image(filepath="", filter_image=True, filter_folder=True, view_align=True) Add a reference image into the background behind objects.

When I call the operator, the image is placed on the origin, normal to Z, and as a reference image not a background image (see distinction here).

How can I position the added images in place?


Also, kind of related, what filter_image and filter_folder do?

Thank you.

$\endgroup$
  • 1
    $\begingroup$ Consider using bpy.ops.object.load_background_image(...) The filters are to show only image file formats and folders in the filebrowser. $\endgroup$ – batFINGER Jan 22 '20 at 3:54
  • $\begingroup$ I'm sorry I copy-pasted the wrong method, I meant load_background_image which loads the image as a reference, which I think makes not much sense... Fixed the question. $\endgroup$ – Jorge Frias Jan 22 '20 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.