-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from semagnum/v4
v1.0.0
- Loading branch information
Showing
30 changed files
with
521 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
{ | ||
"rules": [ | ||
{ | ||
"description": "Default cube exists", | ||
"severity_icon": "INFO", | ||
"category_icon": "MESH_CUBE", | ||
"issue_expr": "'Cube' in bpy.data.objects", | ||
"fix_expr": "bpy.data.objects.remove(bpy.data.objects[\"Cube\"], do_unlink=True)", | ||
"prop_label_expr": "" | ||
}, | ||
{ | ||
"description": "Avoid numeric name suffixes", | ||
"severity_icon": "INFO", | ||
"category_icon": "OBJECT_DATA", | ||
"issue_expr": "o.name.split('.')[-1].isnumeric()", | ||
"fix_expr": "", | ||
"prop_label_expr": "name", | ||
"iterable_expr": "bpy.data.objects", | ||
"iterable_var": "o" | ||
}, | ||
{ | ||
"description": "Animated seed is disabled", | ||
"severity_icon": "ERROR", | ||
"category_icon": "TIME", | ||
"prop_label_expr": "name", | ||
"issue_expr": "curr_scene.render.engine == 'CYCLES' and not curr_scene.cycles.use_animated_seed", | ||
"fix_expr": "curr_scene.cycles.use_animated_seed = True", | ||
"iterable_expr": "bpy.data.scenes", | ||
"iterable_var": "curr_scene" | ||
}, | ||
{ | ||
"description": "Visibility attributes differ", | ||
"severity_icon": "INFO", | ||
"category_icon": "HIDE_OFF", | ||
"prop_label_expr": "name", | ||
"issue_expr": "len({my_object.hide_viewport, my_object.hide_render, my_object.hide_get()}) != 1", | ||
"iterable_expr": "bpy.data.objects", | ||
"iterable_var": "my_object" | ||
} | ||
] | ||
} | ||
"rules": [ | ||
{ | ||
"description": "Default cube exists", | ||
"enabled": true, | ||
"severity_icon": "INFO", | ||
"category_icon": "MESH_CUBE", | ||
"issue_expr": "'Cube' in bpy.data.objects", | ||
"prop_label_expr": "", | ||
"fix_expr": "bpy.data.objects.remove(bpy.data.objects[\"Cube\"], do_unlink=True)" | ||
}, | ||
{ | ||
"description": "Avoid numeric name suffixes", | ||
"enabled": true, | ||
"severity_icon": "INFO", | ||
"category_icon": "OBJECT_DATA", | ||
"issue_expr": "o.name.split('.')[-1].isnumeric()", | ||
"prop_label_expr": "o.name", | ||
"iterable_expr": "bpy.data.objects", | ||
"iterable_var": "o" | ||
}, | ||
{ | ||
"description": "Animated seed is disabled", | ||
"enabled": true, | ||
"severity_icon": "ERROR", | ||
"category_icon": "TIME", | ||
"issue_expr": "curr_scene.render.engine == 'CYCLES' and not curr_scene.cycles.use_animated_seed", | ||
"prop_label_expr": "curr_scene.name", | ||
"fix_expr": "curr_scene.cycles.use_animated_seed = True", | ||
"iterable_expr": "bpy.data.scenes", | ||
"iterable_var": "curr_scene" | ||
}, | ||
{ | ||
"description": "Visibility attributes differ", | ||
"enabled": true, | ||
"severity_icon": "INFO", | ||
"category_icon": "HIDE_OFF", | ||
"issue_expr": "len({my_object.hide_viewport, my_object.hide_render, my_object.hide_get()}) != 1", | ||
"prop_label_expr": "my_object.name", | ||
"iterable_expr": "bpy.data.objects", | ||
"iterable_var": "my_object" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
Model classes | ||
============= | ||
Rules and Issues | ||
================ | ||
|
||
LintIssue | ||
---------- | ||
|
||
.. automodule:: blint.model.LintIssue | ||
:members: | ||
|
||
LintRule | ||
Rule | ||
---------- | ||
|
||
.. autoclass:: blint.model.LintRule.LintRule | ||
These are definitions of rules or checks against your Blender file. | ||
Any violations will be listed as issues. | ||
|
||
.. autoclass:: blint.model.lint_rule.LintRule | ||
:members: | ||
|
||
Issue | ||
---------- | ||
|
||
These are instances of rule violations in your Blender file. | ||
|
||
.. automodule:: blint.model.lint_issue | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
BLint operators | ||
======================= | ||
|
||
BT\_OT\_CreateRule | ||
BT\_OT\_ContextRule | ||
----------------------------------------- | ||
|
||
.. automodule:: blint.operators.BT_OT_CreateRule | ||
.. automodule:: blint.operators.rule_context | ||
:members: | ||
|
||
BT\_OT\_DeleteRule | ||
Adding a new Rule | ||
----------------------------------------- | ||
|
||
.. automodule:: blint.operators.BT_OT_DeleteRule | ||
.. automodule:: blint.operators.rule_create | ||
:members: | ||
|
||
BT\_OT\_FixIssue | ||
Deleting a Selected Rule | ||
----------------------------------------- | ||
|
||
.. automodule:: blint.operators.rule_delete | ||
:members: | ||
|
||
Fixing an Issue | ||
--------------------------------------- | ||
|
||
.. automodule:: blint.operators.BT_OT_FixIssue | ||
.. automodule:: blint.operators.issue_fix | ||
:members: | ||
|
||
BT\_OT\_ReloadRules | ||
Reloading From and Saving To Disk | ||
------------------------------------------ | ||
|
||
.. automodule:: blint.operators.BT_OT_ReloadRules | ||
.. automodule:: blint.operators.rule_reload | ||
:members: | ||
|
||
BT\_OT\_SelectIcon | ||
Icon Selection | ||
----------------------------------------- | ||
|
||
.. automodule:: blint.operators.BT_OT_SelectIcon | ||
.. automodule:: blint.operators.select_icon | ||
:members: | ||
|
||
BT\_OT\_SelectIterator | ||
--------------------------------------------- | ||
|
||
.. automodule:: blint.operators.BT_OT_SelectIterator | ||
.. automodule:: blint.operators.select_iterator | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
BLint Panels and UI Lists | ||
========================= | ||
UI Panels and Lists | ||
=================== | ||
|
||
Issues Panel | ||
---------------------------------- | ||
|
||
.. autoclass:: blint.panels.BT_PT_Issues.BT_PT_Issues | ||
This panel is located in your scene properties. | ||
It is also used in the preferences as a debug tool when editing rules. | ||
|
||
.. autoclass:: blint.panels.issues_panel.BT_PT_Issues | ||
|
||
Issues UI List | ||
---------------------------------- | ||
|
||
.. autoclass:: blint.panels.BT_UL_Issues.BT_UL_Issues | ||
This lists the individual issues in a scene. | ||
|
||
.. autoclass:: blint.panels.issues_list.BT_UL_Issues | ||
|
||
Rules UI List | ||
--------------------------------- | ||
|
||
.. autoclass:: blint.panels.BT_UL_Rules.BT_UL_Rules | ||
This lists the currently used rules in your preferences. | ||
|
||
.. autoclass:: blint.panels.rules_list.BT_UL_Rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Preferences | ||
----------- | ||
|
||
.. autoclass:: blint.preferences.SA_Preferences | ||
.. autoclass:: blint.preferences.preferences.SA_Preferences | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.