databpy 0.12.0
  • Home
  • Attributes
  • API
  • Changelog
  1. Objects
  2. evaluate_object
  • 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

  • Parameters
  • Returns
  • Raises
  • Notes
  • Examples
  1. Objects
  2. evaluate_object

evaluate_object

evaluate_object(obj, context=None)

Return the object with its modifiers evaluated.

Parameters

Name Type Description Default
obj bpy.types.Object The Blender object to evaluate. required
context bpy.types.Context | None The Blender context to use for evaluation, by default None None

Returns

Name Type Description
bpy.types.Object The evaluated object with modifiers applied.

Raises

Name Type Description
TypeError If obj isn’t an object, or its data isn’t a mesh, curves or point cloud.

Notes

The object is tagged for an update, then read from the evaluated depsgraph of context, or of bpy.context if no context is given.

Examples

import bpy
from databpy import evaluate_object
obj = bpy.data.objects['Cube']
evaluated_obj = evaluate_object(obj)
create_bob
GeometrySet