blenderproc.python.modules.utility.ItemWriter module

class blenderproc.python.modules.utility.ItemWriter.ItemWriter(get_item_attribute_func)[source]

Bases: object

_write_items_to_file_for_current_frame(path_prefix, items, attributes, frame, local_frame_change, world_frame_change)[source]

Writes the state of the given items to one numpy file for the given frame.

Parameters:
  • path_prefix – The prefix path to write the files to.
  • items – A list of items.
  • attributes – A list of attributes to write per item.
  • frame – The frame number.
  • local_frame_change – Can be used to change the local coordinate frame of matrices. Default: [“X”, “Y”, “Z”]
  • world_frame_change – Can be used to change the world coordinate frame of points and matrices. Default: [“X”, “Y”, “Z”]
write_items_to_file(path_prefix, items, attributes, local_frame_change=None, world_frame_change=None)[source]

Writes the state of the given items to one numpy file per frame.

Parameters:
  • path_prefix – The prefix path to write the files to.
  • items – A list of items.
  • attributes – A list of attributes to write per item.
  • local_frame_change – Can be used to change the local coordinate frame of matrices. Default: [“X”, “Y”, “Z”]
  • world_frame_change – Can be used to change the world coordinate frame of points and matrices. Default: [“X”, “Y”, “Z”]