Skip to main content
quote and code formatting
Source Link
Ray Mairlot
  • 29.4k
  • 12
  • 105
  • 126

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

bpy.utils.register_class(OBJECT_OT_addSubmarine) to register unregister but I get the same error in console.

Thanks Chris.I fixed that.I put menu item also in register. now I just get one inin the console that is line 43, in menu_item NameError:<name "yellowsubmarine" is not defined IAlso

line 43, in menu_item NameError:<name "yellowsubmarine" is not defined

I Also tried to write it either way as was suggested self.layout.operator(mesh.addsubmarine.bl_idname, text="yellowsubmarine", icon="PLUGIN") if:

self.layout.operator(mesh.addsubmarine.bl_idname, text="yellowsubmarine", icon="PLUGIN")          

If I interpret well what I had to do, but still the same error in line 43. This is the error that I get in console. here is the last code I used trying to make the changes also in line 43 http://pastebin.com/f9LSTUcd

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

to register unregister but I get the same error in console.

Thanks Chris.I fixed that.I put menu item also in register. now I just get one in the console that is line 43, in menu_item NameError:<name "yellowsubmarine" is not defined IAlso tried to write it either way as was suggested self.layout.operator(mesh.addsubmarine.bl_idname, text="yellowsubmarine", icon="PLUGIN") if I interpret well what I had to do, but still the same error in line 43. This is the error that I get in console. here is the last code I used trying to make the changes also in line 43 http://pastebin.com/f9LSTUcd

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine) to register unregister but I get the same error in console.

Thanks Chris.I fixed that.I put menu item also in register. now I just get one in the console that is

line 43, in menu_item NameError:<name "yellowsubmarine" is not defined

I Also tried to write it either way as was suggested:

self.layout.operator(mesh.addsubmarine.bl_idname, text="yellowsubmarine", icon="PLUGIN")          

If I interpret well what I had to do, but still the same error in line 43. This is the error that I get in console. here is the last code I used trying to make the changes also in line 43 http://pastebin.com/f9LSTUcd

added 700 characters in body
Source Link
anonb
  • 31
  • 1
  • 4

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

to register unregister but I get the same error in console.

Thanks Chris.I fixed that.I put menu item also in register. now I just get one in the console that is line 43, in menu_item NameError:<name "yellowsubmarine" is not defined IAlso tried to write it either way as was suggested self.layout.operator(mesh.addsubmarine.bl_idname, text="yellowsubmarine", icon="PLUGIN") if I interpret well what I had to do, but still the same error in line 43. This is the error that I get in console. here is the last code I used trying to make the changes also in line 43 http://pastebin.com/f9LSTUcd

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

to register unregister but I get the same error in console.

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

to register unregister but I get the same error in console.

Thanks Chris.I fixed that.I put menu item also in register. now I just get one in the console that is line 43, in menu_item NameError:<name "yellowsubmarine" is not defined IAlso tried to write it either way as was suggested self.layout.operator(mesh.addsubmarine.bl_idname, text="yellowsubmarine", icon="PLUGIN") if I interpret well what I had to do, but still the same error in line 43. This is the error that I get in console. here is the last code I used trying to make the changes also in line 43 http://pastebin.com/f9LSTUcd

edited body
Source Link
anonb
  • 31
  • 1
  • 4

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

to register unregister but I get the same error in console.

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

Thanks, guys.I had to register again hence I lost my mail_password. so I can add the answer for now rather than comment. I have been testing the changes that sambler proposed.Now I get an error in the console

Traceback >Most recent call last>: File "testsubmarine4.py", line54, in File "testsubmarine4.py",line47, in register Name Errror:mame menu_func is not defined

Here is the code I used http://pastebin.com/5izAYFwH

I also tried using bpy.utils.register_class(OBJECT_OT_addSubmarine)

to register unregister but I get the same error in console.

edited body
Source Link
anonb
  • 31
  • 1
  • 4
Loading
Source Link
anonb
  • 31
  • 1
  • 4
Loading