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

On this page

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

evaluate_object

evaluate_object(obj, context=None)

Return an object which has the 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.

Notes

This function evaluates the object’s modifiers using the current depsgraph. If no context is provided, it uses the current bpy.context.

Examples

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