2017-05-09 42 views
1

我有Python腳本。 運行腳本後,Blender給我一個錯誤。 我的一個錯誤並沒有得到解決。 我想知道你有什麼問題。 我將腳本和文件的十六進制代碼打成了我的消息。 是否有可能Blender 2.78c windows32在python interpritation中有一個錯誤? 或者你能給我帶來什麼困擾?我在哪裏可以找到The Blender interpritator的Python腳本中的錯誤?

import bpy 

bl_info = { 
    "name": "Build the living room", 
    "category": "Object", 
} 


def main(context): 
    scene = context.scene 


class LivingRoomBuilderOperator(bpy.types.Operator): 
    """Living Room Builder Operator""" 
    bl_idname = "object.the_living_room_builder" 
    bl_label = "Living Room Builder Operator" 
    bl_options = {'REGISTER', 'UNDO'} 

    l_width = bpy.props.IntProperty(name="Room Width", default=4000, min=1000, max=100000) 
    l_height = bpy.props.IntProperty(name="Room Height", default=2500, min=1000, max=100000) 
    l_lenght = bpy.props.IntProperty(name="Room Lenght", default=8000, min=1000, max=100000) 

    @classmethod 
    def poll(cls, context): 
     return context.active_object is not None 

    def execute(self, context): 
     main(context) 
     return {'FINISHED'} 


def menu_func(self, context): 
    self.layout.operator(LivingRoomBuilderOperator.bl_idname) 


addon_keymaps = [] 


def register(): 
    bpy.utils.register_class(LivingRoomBuilderOperator) 

    bpy.types.VIEW3D_MT_object.append(menu_func) 

    wm = bpy.context.window_manager 

    kc = wm.keyconfigs.addon 
    if kc: 
     km = wm.keyconfigs.addon.keymaps.new(name='Object Mode', space_type='EMPTY') 
     kmi = km.keymap_items.new(ObjectCursorArray.bl_idname, 'SPACE', 'PRESS', ctrl=True, shift=True) 

     addon_keymaps.append((km, kmi)) 

def unregister(): 

    for km, kmi in addon_keymaps: 
     km.keymap_items.remove(kmi) 
    addon_keymaps.clear() 

    bpy.utils.unregister_class(LivingRoomBuilderOperator) 
    bpy.types.VIEW3D_MT_object.remove(menu_func) 

if __name__ == "__main__": 
    register() 

python文件有4個空格作爲意圖。該文件已使用BOM保存在UTF-8中。

錯誤消息:該腳本尚未執行。攪拌機的控制檯是空的。它剛剛顯示了腳本有什麼錯誤,並沒有顯示錯誤的文本。

文件的十六進制數組:

0xEF, 0xBB, 0xBF, 0x69, 0x6D, 0x70, 0x6F, 0x72, 0x74, 0x20, 0x62, 0x70, 0x79, 0x0D, 0x0A, 0x0D, 
0x0A, 0x62, 0x6C, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x20, 0x3D, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 
0x20, 0x20, 0x22, 0x6E, 0x61, 0x6D, 0x65, 0x22, 0x3A, 0x20, 0x22, 0x42, 0x75, 0x69, 0x6C, 0x64, 
0x20, 0x74, 0x68, 0x65, 0x20, 0x6C, 0x69, 0x76, 0x69, 0x6E, 0x67, 0x20, 0x72, 0x6F, 0x6F, 0x6D, 
0x22, 0x2C, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x22, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6F, 0x72, 
0x79, 0x22, 0x3A, 0x20, 0x22, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x22, 0x2C, 0x0D, 0x0A, 0x7D, 
0x0D, 0x0A, 0x0D, 0x0A, 0x0D, 0x0A, 0x64, 0x65, 0x66, 0x20, 0x6D, 0x61, 0x69, 0x6E, 0x28, 0x63, 
0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x73, 0x63, 
0x65, 0x6E, 0x65, 0x20, 0x3D, 0x20, 0x63, 0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 0x2E, 0x73, 0x63, 
0x65, 0x6E, 0x65, 0x0D, 0x0A, 0x0D, 0x0A, 0x0D, 0x0A, 0x63, 0x6C, 0x61, 0x73, 0x73, 0x20, 0x4C, 
0x69, 0x76, 0x69, 0x6E, 0x67, 0x52, 0x6F, 0x6F, 0x6D, 0x42, 0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 
0x4F, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6F, 0x72, 0x28, 0x62, 0x70, 0x79, 0x2E, 0x74, 0x79, 0x70, 
0x65, 0x73, 0x2E, 0x4F, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6F, 0x72, 0x29, 0x3A, 0x0D, 0x0A, 0x20, 
0x20, 0x20, 0x20, 0x22, 0x22, 0x22, 0x4C, 0x69, 0x76, 0x69, 0x6E, 0x67, 0x20, 0x52, 0x6F, 0x6F, 
0x6D, 0x20, 0x42, 0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 0x20, 0x4F, 0x70, 0x65, 0x72, 0x61, 0x74, 
0x6F, 0x72, 0x22, 0x22, 0x22, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x62, 0x6C, 0x5F, 0x69, 0x64, 
0x6E, 0x61, 0x6D, 0x65, 0x20, 0x3D, 0x20, 0x22, 0x6F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x2E, 0x74, 
0x68, 0x65, 0x5F, 0x6C, 0x69, 0x76, 0x69, 0x6E, 0x67, 0x5F, 0x72, 0x6F, 0x6F, 0x6D, 0x5F, 0x62, 
0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 0x22, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x62, 0x6C, 0x5F, 
0x6C, 0x61, 0x62, 0x65, 0x6C, 0x20, 0x3D, 0x20, 0x22, 0x4C, 0x69, 0x76, 0x69, 0x6E, 0x67, 0x20, 
0x52, 0x6F, 0x6F, 0x6D, 0x20, 0x42, 0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 0x20, 0x4F, 0x70, 0x65, 
0x72, 0x61, 0x74, 0x6F, 0x72, 0x22, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x62, 0x6C, 0x5F, 0x6F, 
0x70, 0x74, 0x69, 0x6F, 0x6E, 0x73, 0x20, 0x3D, 0x20, 0x7B, 0x27, 0x52, 0x45, 0x47, 0x49, 0x53, 
0x54, 0x45, 0x52, 0x27, 0x2C, 0x20, 0x27, 0x55, 0x4E, 0x44, 0x4F, 0x27, 0x7D, 0x0D, 0x0A, 0x0D, 
0x0A, 0x20, 0x20, 0x20, 0x20, 0x6C, 0x5F, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x3D, 0x20, 0x62, 
0x70, 0x79, 0x2E, 0x70, 0x72, 0x6F, 0x70, 0x73, 0x2E, 0x49, 0x6E, 0x74, 0x50, 0x72, 0x6F, 0x70, 
0x65, 0x72, 0x74, 0x79, 0x28, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x52, 0x6F, 0x6F, 0x6D, 0x20, 
0x57, 0x69, 0x64, 0x74, 0x68, 0x22, 0x2C, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x3D, 
0x34, 0x30, 0x30, 0x30, 0x2C, 0x20, 0x6D, 0x69, 0x6E, 0x3D, 0x31, 0x30, 0x30, 0x30, 0x2C, 0x20, 
0x6D, 0x61, 0x78, 0x3D, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 
0x20, 0x6C, 0x5F, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3D, 0x20, 0x62, 0x70, 0x79, 0x2E, 
0x70, 0x72, 0x6F, 0x70, 0x73, 0x2E, 0x49, 0x6E, 0x74, 0x50, 0x72, 0x6F, 0x70, 0x65, 0x72, 0x74, 
0x79, 0x28, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x52, 0x6F, 0x6F, 0x6D, 0x20, 0x48, 0x65, 0x69, 
0x67, 0x68, 0x74, 0x22, 0x2C, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x3D, 0x32, 0x35, 
0x30, 0x30, 0x2C, 0x20, 0x6D, 0x69, 0x6E, 0x3D, 0x31, 0x30, 0x30, 0x30, 0x2C, 0x20, 0x6D, 0x61, 
0x78, 0x3D, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x6C, 
0x5F, 0x6C, 0x65, 0x6E, 0x67, 0x68, 0x74, 0x20, 0x3D, 0x20, 0x62, 0x70, 0x79, 0x2E, 0x70, 0x72, 
0x6F, 0x70, 0x73, 0x2E, 0x49, 0x6E, 0x74, 0x50, 0x72, 0x6F, 0x70, 0x65, 0x72, 0x74, 0x79, 0x28, 
0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x52, 0x6F, 0x6F, 0x6D, 0x20, 0x4C, 0x65, 0x6E, 0x67, 0x68, 
0x74, 0x22, 0x2C, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x3D, 0x38, 0x30, 0x30, 0x30, 
0x2C, 0x20, 0x6D, 0x69, 0x6E, 0x3D, 0x31, 0x30, 0x30, 0x30, 0x2C, 0x20, 0x6D, 0x61, 0x78, 0x3D, 
0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x29, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x40, 
0x63, 0x6C, 0x61, 0x73, 0x73, 0x6D, 0x65, 0x74, 0x68, 0x6F, 0x64, 0x0D, 0x0A, 0x20, 0x20, 0x20, 
0x20, 0x64, 0x65, 0x66, 0x20, 0x70, 0x6F, 0x6C, 0x6C, 0x28, 0x63, 0x6C, 0x73, 0x2C, 0x20, 0x63, 
0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 
0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x63, 0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 
0x2E, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5F, 0x6F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x69, 
0x73, 0x20, 0x6E, 0x6F, 0x74, 0x20, 0x4E, 0x6F, 0x6E, 0x65, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 
0x20, 0x20, 0x64, 0x65, 0x66, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x28, 0x73, 0x65, 
0x6C, 0x66, 0x2C, 0x20, 0x63, 0x6F, 0x6E, 0x74, 0x65, 0x78, 0x74, 0x29, 0x3A, 0x0D, 0x0A, 0x20, 
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6D, 0x61, 0x69, 0x6E, 0x28, 0x63, 0x6F, 0x6E, 0x74, 
0x65, 0x78, 0x74, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 
0x74, 0x75, 0x72, 0x6E, 0x20, 0x7B, 0x27, 0x46, 0x49, 0x4E, 0x49, 0x53, 0x48, 0x45, 0x44, 0x27, 
0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x0D, 0x0A, 0x64, 0x65, 0x66, 0x20, 0x6D, 0x65, 0x6E, 0x75, 0x5F, 
0x66, 0x75, 0x6E, 0x63, 0x28, 0x73, 0x65, 0x6C, 0x66, 0x2C, 0x20, 0x63, 0x6F, 0x6E, 0x74, 0x65, 
0x78, 0x74, 0x29, 0x3A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6C, 0x66, 0x2E, 0x6C, 
0x61, 0x79, 0x6F, 0x75, 0x74, 0x2E, 0x6F, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6F, 0x72, 0x28, 0x4C, 
0x69, 0x76, 0x69, 0x6E, 0x67, 0x52, 0x6F, 0x6F, 0x6D, 0x42, 0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 
0x4F, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6F, 0x72, 0x2E, 0x62, 0x6C, 0x5F, 0x69, 0x64, 0x6E, 0x61, 
0x6D, 0x65, 0x29, 0x0D, 0x0A, 0x0D, 0x0A, 0x0D, 0x0A, 0x61, 0x64, 0x64, 0x6F, 0x6E, 0x5F, 0x6B, 
0x65, 0x79, 0x6D, 0x61, 0x70, 0x73, 0x20, 0x3D, 0x20, 0x5B, 0x5D, 0x0D, 0x0A, 0x0D, 0x0A, 0x0D, 
0x0A, 0x64, 0x65, 0x66, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x28, 0x29, 0x3A, 
0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x62, 0x70, 0x79, 0x2E, 0x75, 0x74, 0x69, 0x6C, 0x73, 0x2E, 
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5F, 0x63, 0x6C, 0x61, 0x73, 0x73, 0x28, 0x4C, 
0x69, 0x76, 0x69, 0x6E, 0x67, 0x52, 0x6F, 0x6F, 0x6D, 0x42, 0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 
0x4F, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6F, 0x72, 0x29, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 
0x20, 0x62, 0x70, 0x79, 0x2E, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2E, 0x56, 0x49, 0x45, 0x57, 0x33, 
0x44, 0x5F, 0x4D, 0x54, 0x5F, 0x6F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x2E, 0x61, 0x70, 0x70, 0x65, 
0x6E, 0x64, 0x28, 0x6D, 0x65, 0x6E, 0x75, 0x5F, 0x66, 0x75, 0x6E, 0x63, 0x29, 0x0D, 0x0A, 0x0D, 
0x0A, 0x20, 0x20, 0x20, 0x20, 0x77, 0x6D, 0x20, 0x3D, 0x20, 0x62, 0x70, 0x79, 0x2E, 0x63, 0x6F, 
0x6E, 0x74, 0x65, 0x78, 0x74, 0x2E, 0x77, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x5F, 0x6D, 0x61, 0x6E, 
0x61, 0x67, 0x65, 0x72, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x6B, 0x63, 0x20, 0x3D, 
0x20, 0x77, 0x6D, 0x2E, 0x6B, 0x65, 0x79, 0x63, 0x6F, 0x6E, 0x66, 0x69, 0x67, 0x73, 0x2E, 0x61, 
0x64, 0x64, 0x6F, 0x6E, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6B, 0x63, 0x3A, 
0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6B, 0x6D, 0x20, 0x3D, 0x20, 0x77, 
0x6D, 0x2E, 0x6B, 0x65, 0x79, 0x63, 0x6F, 0x6E, 0x66, 0x69, 0x67, 0x73, 0x2E, 0x61, 0x64, 0x64, 
0x6F, 0x6E, 0x2E, 0x6B, 0x65, 0x79, 0x6D, 0x61, 0x70, 0x73, 0x2E, 0x6E, 0x65, 0x77, 0x28, 0x6E, 
0x61, 0x6D, 0x65, 0x3D, 0x27, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x4D, 0x6F, 0x64, 0x65, 
0x27, 0x2C, 0x20, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5F, 0x74, 0x79, 0x70, 0x65, 0x3D, 0x27, 0x45, 
0x4D, 0x50, 0x54, 0x59, 0x27, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 
0x6B, 0x6D, 0x69, 0x20, 0x3D, 0x20, 0x6B, 0x6D, 0x2E, 0x6B, 0x65, 0x79, 0x6D, 0x61, 0x70, 0x5F, 
0x69, 0x74, 0x65, 0x6D, 0x73, 0x2E, 0x6E, 0x65, 0x77, 0x28, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 
0x43, 0x75, 0x72, 0x73, 0x6F, 0x72, 0x41, 0x72, 0x72, 0x61, 0x79, 0x2E, 0x62, 0x6C, 0x5F, 0x69, 
0x64, 0x6E, 0x61, 0x6D, 0x65, 0x2C, 0x20, 0x27, 0x53, 0x50, 0x41, 0x43, 0x45, 0x27, 0x2C, 0x20, 
0x27, 0x50, 0x52, 0x45, 0x53, 0x53, 0x27, 0x2C, 0x20, 0x63, 0x74, 0x72, 0x6C, 0x3D, 0x54, 0x72, 
0x75, 0x65, 0x2C, 0x20, 0x73, 0x68, 0x69, 0x66, 0x74, 0x3D, 0x54, 0x72, 0x75, 0x65, 0x29, 0x0D, 
0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x64, 0x64, 0x6F, 0x6E, 
0x5F, 0x6B, 0x65, 0x79, 0x6D, 0x61, 0x70, 0x73, 0x2E, 0x61, 0x70, 0x70, 0x65, 0x6E, 0x64, 0x28, 
0x28, 0x6B, 0x6D, 0x2C, 0x20, 0x6B, 0x6D, 0x69, 0x29, 0x29, 0x0D, 0x0A, 0x0D, 0x0A, 0x64, 0x65, 
0x66, 0x20, 0x75, 0x6E, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x28, 0x29, 0x3A, 0x0D, 
0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x6B, 0x6D, 0x2C, 0x20, 0x6B, 
0x6D, 0x69, 0x20, 0x69, 0x6E, 0x20, 0x61, 0x64, 0x64, 0x6F, 0x6E, 0x5F, 0x6B, 0x65, 0x79, 0x6D, 
0x61, 0x70, 0x73, 0x3A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6B, 0x6D, 
0x2E, 0x6B, 0x65, 0x79, 0x6D, 0x61, 0x70, 0x5F, 0x69, 0x74, 0x65, 0x6D, 0x73, 0x2E, 0x72, 0x65, 
0x6D, 0x6F, 0x76, 0x65, 0x28, 0x6B, 0x6D, 0x69, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x61, 
0x64, 0x64, 0x6F, 0x6E, 0x5F, 0x6B, 0x65, 0x79, 0x6D, 0x61, 0x70, 0x73, 0x2E, 0x63, 0x6C, 0x65, 
0x61, 0x72, 0x28, 0x29, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x62, 0x70, 0x79, 0x2E, 
0x75, 0x74, 0x69, 0x6C, 0x73, 0x2E, 0x75, 0x6E, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 
0x5F, 0x63, 0x6C, 0x61, 0x73, 0x73, 0x28, 0x4C, 0x69, 0x76, 0x69, 0x6E, 0x67, 0x52, 0x6F, 0x6F, 
0x6D, 0x42, 0x75, 0x69, 0x6C, 0x64, 0x65, 0x72, 0x4F, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6F, 0x72, 
0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x62, 0x70, 0x79, 0x2E, 0x74, 0x79, 0x70, 0x65, 0x73, 
0x2E, 0x56, 0x49, 0x45, 0x57, 0x33, 0x44, 0x5F, 0x4D, 0x54, 0x5F, 0x6F, 0x62, 0x6A, 0x65, 0x63, 
0x74, 0x2E, 0x72, 0x65, 0x6D, 0x6F, 0x76, 0x65, 0x28, 0x6D, 0x65, 0x6E, 0x75, 0x5F, 0x66, 0x75, 
0x6E, 0x63, 0x29, 0x0D, 0x0A, 0x0D, 0x0A, 0x69, 0x66, 0x20, 0x5F, 0x5F, 0x6E, 0x61, 0x6D, 0x65, 
0x5F, 0x5F, 0x20, 0x3D, 0x3D, 0x20, 0x22, 0x5F, 0x5F, 0x6D, 0x61, 0x69, 0x6E, 0x5F, 0x5F, 0x22, 
0x3A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x28, 
0x29, 

空間炭代碼:0×20,標籤字符代碼:0×09

錯誤的PRINTSCREEN:The error in The Blender 2.78c-windows32 in the above script

+2

這很可能是您的腳本包含錯誤。你可以在你的問題中包含錯誤信息嗎? – rodrigo

+0

我剛剛在上面的消息中添加了錯誤的打印屏幕。 – DmitriyS

+2

請[錯誤消息的文本,而不是截圖](http://meta.stackoverflow.com/a/285557/3005167)。 (除此之外,這個消息很明顯 - 你在腳本中混合了空格和製表符。[不要這樣做!](http://stackoverflow.com/a/5685816/3005167)) – kazemakase

回答

0

ObjectCursorArray不存在 - 您在kmi = km.keymap_items.new()中使用它。

將Python錯誤打印到console,您需要查看該錯誤。

也可以在blender的python控制檯中運行腳本,並在那裏查看eror消息。 This answer顯示瞭如何和鏈接到一個插件,可以使其更容易。

相關問題