import bpy
from databpy import evaluate_object
= bpy.data.objects['Cube']
obj = evaluate_object(obj) evaluated_obj
evaluate_object
=None) evaluate_object(obj, context
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.