blenderproc.python.modules.loader.LoaderInterface module¶
-
class
blenderproc.python.modules.loader.LoaderInterface.
LoaderInterface
(config)[source]¶ Bases:
blenderproc.python.modules.main.Module.Module
Configuration:
Parameter Description Type add_properties Custom properties to set for loaded objects. Use cp_ prefix for keys. dict add_material_properties Custom properties to set for the materials of loaded objects. Use cp_ prefix for keys. This only works for materials which are used. Additional materials, which are loaded for example via a .blend file, are not affected by this. dict cf_set_shading Custom function to set the shading of the selected object. Default: ‘FLAT’. Available: [‘FLAT’, ‘SMOOTH’, ‘AUTO’]. str cf_shading_auto_smooth_angle_in_deg Angle in degrees at which flat shading is activated in AUTO mode. Default: 30. float cf_apply_transformation Loaded objects, sometimes contain transformations, these can be applied to the mesh, so that setting a new location, has the expected behavior. Else the prior location, will be replaced. Default: False. bool cf_merge_objects Merges a list of objects by creating an empty object and assinging it as parent to every object which does not already have a parent. Returns the list of objects including the newly created empty parent. list cf_merged_object_name Name of the empty parent object. Default: merged_object. str