databpy 0.11.0
  • Home
  • Attributes
  • API
  • Changelog
  1. Attribute
  2. list_attributes
  • Function reference
  • Attribute
    • named_attribute
    • store_named_attribute
    • remove_named_attribute
    • list_attributes
    • AttributeDomains
    • AttributeTypes
    • AttributeArray
    • Attribute
    • attribute.guess_atype_from_array
  • Collections
    • create_collection
    • move_to_collection
  • Objects
    • create_object
    • create_mesh_object
    • create_curves_object
    • create_pointcloud_object
    • create_bob
    • evaluate_object
    • GeometrySet
    • BlenderObject
    • BlenderObjectAttribute
    • BlenderObjectBase
  • Errors
    • DatabpyError
    • NamedAttributeError
    • AttributeNotFoundError
    • AttributeMismatchError
    • LinkedObjectError
  • Utilities
    • require
    • require_data
    • mesh_data
    • curves_data
    • pointcloud_data
    • volume_data
    • active_scene
    • active_object
    • centre
    • lerp
  • Nodes (deprecated)
    • nodes.new_tree
    • nodes.swap_tree
    • nodes.custom_string_iswitch
    • nodes.append_from_blend
    • nodes.new_socket
    • nodes.tree_interface
    • nodes.input_socket
    • nodes.output_socket
    • nodes.socket_value
    • nodes.set_socket_value
    • nodes.MaintainConnections
    • nodes.DuplicatePrevention

On this page

  • list_attributes
    • Parameters
    • Returns
    • Raises
  1. Attribute
  2. list_attributes

list_attributes

list_attributes(obj, evaluate=False, drop_hidden=False)

List the names of the attributes on an object, sorted alphabetically.

Parameters

Name Type Description Default
obj bpy.types.Object The Blender object, with mesh, curves or point cloud data. required
evaluate bool Whether to list the attributes after evaluating modifiers, by default False. False
drop_hidden bool Whether to leave out hidden attributes, whose names start with ., by default False. False

Returns

Name Type Description
list[str] The attribute names.

Raises

Name Type Description
TypeError If the object’s data isn’t a mesh, curves or point cloud.
remove_named_attribute
AttributeDomains