jsculpt-tools icon indicating copy to clipboard operation
jsculpt-tools copied to clipboard

blender automation + script error

Open 0xCCD opened this issue 5 years ago • 2 comments

I am using blender in background mode to generate some files and I get the following exception with your plugin:

Exception in module register(): /home/xxx/.config/blender/2.90/scripts/addons/jsculpt-tools-master/__init__.py
Traceback (most recent call last):
  File "/home/xxx/Apps/Blender/blender-2.90.0-linux64/2.90/scripts/modules/addon_utils.py", line 382, in enable
    mod.register()
  File "/home/xxx/.config/blender/2.90/scripts/addons/jsculpt-tools-master/__init__.py", line 109, in register
    km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
AttributeError: 'NoneType' object has no attribute 'keymaps'

I worked around by adding the following code to your __init__.py file

if kc is None:
      print('ERROR: CAN NOT REGISTER JSCULPT')
      return

0xCCD avatar Sep 04 '20 09:09 0xCCD

Screenshot 2022-04-18 220022

banxliaou1 avatar Apr 18 '22 15:04 banxliaou1

Please get latest version and deinstall this one, bug should be fixed.

On Mon, Apr 18, 2022 at 5:09 PM banxliaou1 @.***> wrote:

[image: Screenshot 2022-04-18 220022] https://user-images.githubusercontent.com/103946376/163828944-c7bb90a5-2497-45bc-ad3d-9e6f617800f2.jpg

— Reply to this email directly, view it on GitHub https://github.com/jayanam/jsculpt-tools/pull/2#issuecomment-1101481982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJUGIBQDRLARCVTRD3MSTLVFV3K5ANCNFSM4QX3MXOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jayanam avatar Apr 18 '22 20:04 jayanam