Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Constraints are not visible in viewport UI nor in 'Constraints' panel #401

Open
zanovis opened this issue Jul 8, 2023 · 7 comments
Labels
Bounty - Small https://www.cadsketcher.com/cad-sketcher-bounty-board bug Something isn't working

Comments

@zanovis
Copy link

zanovis commented Jul 8, 2023

Contact Details

No response

Description

Constraints are not visible in viewport/side panel. Additionally, attempting to delete the sketch throws this error:

Python: Traceback (most recent call last):
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\ui\panels\constraints_list.py", line 98, in draw
    draw_constraint_listitem(context, col, c)
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\ui\panels\constraints_list.py", line 15, in draw_constraint_listitem
    index = context.scene.sketcher.constraints.get_index(constraint)
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\model\group_constraints.py", line 120, in get_index
    list = getattr(self, constr.type.lower())
AttributeError: 'SlvsConstraints' object has no attribute ''

image

Addon Version

.27

Blender Version

3.6

What platform are you running on?

Windows

@zanovis zanovis added the bug Something isn't working label Jul 8, 2023
@hlorus
Copy link
Owner

hlorus commented Jul 9, 2023

Are you able to reproduce the error and could submit the steps to reproduce?

@zanovis
Copy link
Author

zanovis commented Jul 9, 2023 via email

@hlorus
Copy link
Owner

hlorus commented Jul 9, 2023

I'll need the full content of the terminal to help, see: https://hlorus.github.io/CAD_Sketcher/advanced/#console-output

@zanovis
Copy link
Author

zanovis commented Jul 9, 2023

Does this help?

Traceback (most recent call last):
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\ui\panels\constraints_list.py", line 110, in draw
    draw_constraint_listitem(context, col, c)
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\ui\panels\constraints_list.py", line 15, in draw_constraint_listitem
    index = context.scene.sketcher.constraints.get_index(constraint)
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\model\group_constraints.py", line 120, in get_index
    list = getattr(self, constr.type.lower())
AttributeError: 'SlvsConstraints' object has no attribute ''
Traceback (most recent call last):
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
    constraint = self._get_constraint(context)
  File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
    self.type, self.index
  File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in __getattribute__    return super().__getattribute__(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'

@hlorus
Copy link
Owner

hlorus commented Jul 10, 2023

Does this help?

Not really, this is just the draw function that complains about a problem but i can't see what caused the problem in the first place. Usually there's a different traceback at the top of the console...

@zanovis
Copy link
Author

zanovis commented Jul 22, 2023

How's this?

StructRNA of type BlenderKitDisclaimerOperator has been removed
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 114, in refresh
self.setup(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 73, in setup
gz.index = context.scene.sketcher.constraints.get_index(c)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\model\group_constraints.py", line 120, in get_index
list = getattr(self, constr.type.lower())
AttributeError: 'SlvsConstraints' object has no attribute ''
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed
Traceback (most recent call last):
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\constraint.py", line 159, in draw
constraint = self._get_constraint(context)
File "C:\Users\Noah\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\CAD_Sketcher-main\gizmos\base.py", line 10, in _get_constraint
self.type, self.index
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy_types.py", line 741, in getattribute return super().getattribute(attr)
AttributeError: 'VIEW3D_GT_slvs_constraint' object has no attribute 'index'
StructRNA of type BlenderKitDisclaimerOperator has been removed

@hlorus
Copy link
Owner

hlorus commented Jul 23, 2023

Looks like there are some issues with the blenderkit addon. Have you already tried if the issue persists if you disable that?

@hlorus hlorus added the Bounty - Small https://www.cadsketcher.com/cad-sketcher-bounty-board label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bounty - Small https://www.cadsketcher.com/cad-sketcher-bounty-board bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants