Import Error for BPY module in python

前端 未结 1 1334
盖世英雄少女心
盖世英雄少女心 2021-01-25 02:07

I was trying to write a python script and execute it within blender context. But it reports \'Import Error : No module named \"bpy\"\'. I tried installing another version of ble

1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-25 02:42

    The bpy module is a built-in part of blender that gives python scripts access to the data and operators used in blender. This module is available to scripts run within blender itself, which includes a python interpreter. The bpy module isn't normally available to import from a normal python command, but there is limited support to compile a blender module.

    To use the bpy module you can start blender and use the built in python console or you can type in or open a script in the text editor which has a run script button available. Particularly if you run scripts from the text editor you will want access to a console to get error reports.

    0 讨论(0)
提交回复
热议问题