A BPY plus module to simplify work with 3D objects.
1 2 3 4 5 |
from .bpy_plus.objects import select_all select_all() # для выбора всех объектов в сцене |
select_all(context=bpy.context):
Select all objects in the scene
Parameters:
context: context
deselect_all(context=bpy.context):
Remove selection from all objects in the scene
Parameters:
context: context
set_active(obj, context=bpy.context):
Set object “obj” as active
Parameters:
obj: object
context: context
duplicate(obj, data=True, actions=True, collection=None, context=bpy.context):
Create object’s copy
Parameters:
obj: object
data: Tue – copy object’s data, False – link
actions: Tue – copy object’s actions, False – link
collectoin: collection to place an object’s copy None – to active collection
context: context
Returns:
object’s copy