user: Provide the full official documentation entry for Bpy.Ops.Import Scene, preserving all code examples.

assistant:  , 'Z' , '-X' , '-Y' , '-Z' ], (optional)) – Up File : addons_core/io_scene_fbx/__init__.py:222 bpy.ops.import_scene. gltf ( * , filepath = '' , export_import_convert_lighting_mode = 'SPEC' , filter_glob = '*.glb;*.gltf' , directory = '' , files = None , loglevel = 0 , import_pack_images = True , merge_vertices = False , import_shading = 'NORMALS' , bone_heuristic = 'BLENDER' , disable_bone_shape = False , bone_shape_scale_factor = 1.0 , guess_original_bind_pose = True , import_webp_texture = False , import_unused_materials = False , import_select_created_objects = True , import_scene_extras = True , import_scene_as_collection = True , import_merge_material_slots = True ) ¶ Load a glTF 2.0 file Parameters : filepath ( string , ( optional , never None ) ) – File Path, Filepath used for importing the file export_import_convert_lighting_mode (enum in [ 'SPEC' , 'COMPAT' , 'RAW' ], (optional)) – Lighting Mode, Optional backwards compatibility for non-standard render engines. Applies to lights SPEC Standard – Physically-based glTF lighting units (cd, lx, nt). COMPAT Unitless – Non-physical, unitless lighting. Useful when exposure controls are not available. RAW Raw (Deprecated) – Blender lighting strengths with no conversion. filter_glob ( string , ( optional , never None ) ) – filter_glob directory ( string , ( optional , never None ) ) – directory files ( bpy_prop_collection of OperatorFileListElement , (optional)) – File Path loglevel ( int in [ -inf , inf ] , ( optional ) ) – Log Level, Log Level import_pack_images ( boolean , ( optional ) ) – Pack Images, Pack all images into .blend file merge_vertices ( boolean , ( optional ) ) – Merge Vertices, The glTF format requires discontinuous normals, UVs, and other vertex attributes to be stored as separate vertices, as required for rendering on typical graphics hardware. This option attempts to combine co-located vertices where possible. Currently cannot combine verts with different normals import_shading (enum in [ 'NORMALS' , 'FLAT' , 'SMOOTH' ], (optional)) – Shading, How normals are computed during import bone_heuristic (enum in [ 'BLENDER' , 'TEMPERANCE' , 'FORTUNE' ], (optional)) – Bone Dir, Heuristic for placing bones. Tries to make bones pretty BLENDER Blender (best for import/export round trip) – Good for re-importing glTFs exported from Blender, and re-exporting glTFs to glTFs after Blender editing. Bone tips are placed on their local +Y axis (in glTF space). TEMPERANCE Temperance (average) – Decent all-around strategy. A bone with one child has its tip placed on the local axis closest to its child. FORTUNE Fortune (may look better, less accurate) – Might look better than Temperance, but also might have errors. A bone with one child has its tip placed at its child’s root. Non-uniform scalings may get messed up though, so beware. disable_bone_shape ( boolean , ( optional ) ) – Disable Bone Shape, Do not create bone shapes bone_shape_scale_factor ( float in [ -inf , inf ] , ( optional ) ) – Bone Shape Scale, Scale factor for bone shapes guess_original_bind_pose ( boolean , ( optional ) ) – Guess Original Bind Pose, Try to guess the original bind pose for skinned meshes from the inverse bind matrices. When off, use default/rest pose as bind pose import_webp_texture ( boolean , ( optional ) ) – Import WebP Textures, If a texture exists in WebP format, loads the WebP texture instead of the fallback PNG/JPEG one import_unused_materials ( boolean , ( optional ) ) – Import Unused Materials & Images, Import materials & Images not assigned to any mesh import_select_created_objects ( boolean , ( optional ) ) – Select Imported Objects, Select created objects at the end of the import import_scene_extras ( boolean , ( optional ) ) – Import Scene Extras, Import scene extras as custom properties. Existing custom properties will be overwritten import_scene_as_collection ( boolean , ( optional ) ) – Import Scene as Collection, Import the scene as a collection import_merge_material_slots ( boolean , ( optional ) ) – Merge Material Slot when possible, Merge material slots when possible File : addons_core/io_scene_gltf2/__init__.py:2012 Next Info Operators Previous Import Curve Operators Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page Import Scene Operators fbx() gltf()