Reputation: 1
i want to write a code in python but when i Write code:
import os, os.path
import Blender
from Blender import NMesh,Object,Material,Texture,Image,Draw,Window,Registry
from RoRUtils_0_6_7 import *
__version__ = "0.6.7"
class RORExport:
img = None
def __init__(self, filename):
self.filename = filename
self.sectiontitles = getSectionTitles()
self.settings = loadSettings()
It Show me the error " No module named Blender" i want to know how i import Blender in Python.Can some one help me?
Upvotes: 0
Views: 2298
Reputation: 1
if you are trying to use blender API so firstly you need to install it through cmd:
pip install bpy and instead of "import Blender" make "import bpy" Hope that work for you
Upvotes: 0