blenderproc.python.modules.loader.SuncgLoaderModule module

class blenderproc.python.modules.loader.SuncgLoaderModule.SuncgLoaderModule(config)[source]

Bases: blenderproc.python.modules.loader.LoaderInterface.LoaderInterface

Loads a house.json file into blender.

  • Loads all objects files specified in the house.json file.
  • Orders them hierarchically (level -> room -> object)
  • Writes metadata into the custom properties of each object

Configuration:

Parameter Description Type
path The path to the house.json file which should be loaded. string
suncg_path The path to the suncg root directory which should be used for loading objects, rooms, textures etc. Default: is extracted from the house.json path string
run()[source]