blender automation + script error
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

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: @.***>