databpy
  • Home
  • Attributes
  • API
  1. Objects
  2. create_bob
  • Function reference
  • Attribute
    • named_attribute
    • store_named_attribute
    • remove_named_attribute
    • AttributeDomains
    • AttributeTypes
    • AttributeArray
  • Collections
    • create_collection
  • Objects
    • create_object
    • create_mesh_object
    • create_curves_object
    • create_pointcloud_object
    • create_bob
    • evaluate_object
    • BlenderObject
    • BlenderObjectAttribute
    • BlenderObjectBase
    • LinkedObjectError

On this page

  • create_bob
    • Parameters
    • Returns
  1. Objects
  2. create_bob

create_bob

create_bob(
    vertices=None,
    edges=None,
    faces=None,
    name='NewObject',
    collection=None,
    uuid=None,
)

Create a BlenderObject wrapper around a new Blender mesh object.

Parameters

Name Type Description Default
vertices ndarray or None Array of vertex coordinates. Default is None. None
edges ndarray or None Array of edge indices. Default is None. None
faces ndarray or None Array of face indices. Default is None. None
name str Name of the created object. Default is “NewObject”. 'NewObject'
collection bpy.types.Collection or None Blender collection to link the object to. Default is None. None
uuid str or None Directly set the UUID on the resulting BlenderObject. Default is None. None

Returns

Name Type Description
BlenderObject A wrapped Blender mesh object.