在Blender控制台执行粘贴命令。
bpy.ops.console.paste()
无
import bpy # 设置场景中 cube 的位置 bpy.context.scene.objects['Cube'].location.x += 1 # 在控制台执行上面的命令 bpy.ops.console.paste()
bpy.context.scene.objects['Cube'].location.x += 1