evaluate_object(obj, context=None)
Return the object with its modifiers evaluated.
Parameters
| 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
|
bpy.types.Object |
The evaluated object with modifiers applied. |
Raises
|
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)