Commit Graph

39 Commits

Author SHA1 Message Date
e8da6131fd License headers: use SPDX-FileCopyrightText for all addons
Move copyright text to SPDX-FileCopyrightText or set to the
Blender Foundation so "make check_licenses" now runs without warnings.
2023-06-15 16:54:05 +10:00
b8d86ccc0a File headers: use SPDX license identifiers
See T95597
2022-02-11 16:05:07 +11:00
c3b43de9ec Bone Selection Sets: avoid error when running headless
When running Blender in the background (`-b` CLI option),
`window_manager.keyconfigs.addon` is `None`. This is now checked for
instead of causing an `AttributeError`.
2021-03-16 17:05:28 +01:00
425a3f6a70 Cleanup: strip trailing space 2021-01-25 12:33:59 +11:00
1be0b3210d Bone Selection Sets: USE_INSERTION on CollectionProperties
Use the new 'USE_INSERTION' override flag (rBdb314ee7a472) to allow creating new entries of Selection Sets on overridden rigs. I tested including saving and reloading, assigning and removing bones from a set:

- Can create and name new, local sets
- Can add and remove bones to and from those local sets
- Can add bones to original, non-local sets and remove those same bones
- Can NOT remove original sets
- Can NOT remove originally assigned bones bones from originally existing sets

To me this all seems to be working as intended, so might as well use it!

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D8971
2020-09-21 17:59:22 +02:00
f156a1248b Bone Selection Sets: Make all property definitions Library Overridable
Without this, the addon simply doesn't work on library overridden rigs, since all the addon's interface is grayed out with an error message saying the properties are not overridable.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D8403
2020-07-28 11:38:53 +02:00
7f50343d1c Addons: Use Manual URL prefix 2020-03-05 16:26:11 -05:00
bb977fbc72 Update 'bl_info' use 'doc_url' instead of 'wiki_url' 2020-03-05 12:14:43 +11:00
0c476b7c19 bone_selection_sets: add manual link 2019-11-13 12:20:28 +11:00
d89cd812f3 bone_selection_sets: close panels by default: T70017 2019-09-24 11:42:02 +10:00
b2b015a396 Update for changes to Blender 2019-03-12 11:05:44 +11:00
96cb6c0668 Update for new icon set. 2018-10-09 18:56:54 +02:00
ff7ded091b Bone Selection Sets: fix broken shortcut to select a set 2018-09-24 21:11:59 +02:00
ce871b0b50 Bone Selection Sets: Temporary solution for copy/pasting multiple sets.
Copy/Pasting multiple sets was requested by the Spring Animation Team.
Currently UILists don't support multiple selection, though :(
I added a checkbox to represent additionally selected sets, which is far from
ideal in terms of UI and understanding what the operators should apply to.
The checkboxes currently only affect copy/pasting, which should be reviewed later.
2018-09-24 00:12:30 +02:00
21466a9ece Bone Selection Sets: minor refactoring and improvements.
- hide properties of operators so they don't show in the last action panel if unneeded.
- menu registration was not being unregistered.
- minor comments and renaming (Select > Bone Selection Set instead of Select > Select Selection Set)
2018-09-22 14:34:29 +02:00
464aaced76 Bone Selection Sets: organize file according to structure 2018-09-22 12:51:12 +02:00
9dc19735c3 Python: use fields 2018-07-12 15:09:15 +02:00
abcc0c13c8 bone_selection_sets: version bump 2018-07-03 11:26:54 +02:00
771cde6273 Bone Selection Sets: bumped version from 2.1.0 to 2.1.1 2018-03-27 12:47:13 +02:00
8a62f77e64 Bone Selection Sets: better keymap handling
Previously the keymap registration would cause an error when there was
no Pose keymap yet. Now the code adheres to the example code in
[the tutorial](https://docs.blender.org/api/blender_python_api_master/info_tutorial_addon.html#keymap).
2018-03-27 12:46:35 +02:00
fad17c652d Bone Selection Sets: correctly named POSE_MT_selection_set_create
This name was used before, and is still referenced in the
POSE_OT_selection_set_assign operator.
2018-03-27 12:45:17 +02:00
95c21a6b66 Bone Selection Sets: bump version 2.0.1 → 2.1.0 2018-02-08 11:02:15 +01:00
a5ddc8c5b4 Bone Selection Sets: ensure unique names
When pasting a selection set with a name that already exists, the pasted
selection set gets a '.xxx' suffix.
2018-02-08 11:02:15 +01:00
cf28577e25 Bone Selection Sets: added copy & paste of individual Selection Sets
The copied Selection Set is stored as JSON document on the clipboard,
like `{"name": "SelectionSet", "bones": ["Bone", "Bone.001"]}`

Using JSON allows the animator to copy/paste selection sets through
text- based communication channels (IRC, email, bug reports, etc.)

When pasting, a new Selection Set is always made, regardless of whether
one with the same name already exists.
2018-02-08 11:02:15 +01:00
0ff800fd63 Bone Selection Sets: formatting according to PEP-8 2018-02-08 10:46:08 +01:00
e5571d313e Bone Selection Sets: added popup menu for quickly selecting selection set
Pressing Shift+Alt+W pops up a menu with the different bone selection
sets for the current rig. Selecting a set will select all the bones in
that set.

This functionality was copied from [1]; that add-on has already been
used for quite a while in the Blender Animation Studio with great
succes. The main difference is that now the menu uses the selection set
index rather than the name, which means it'll work correctly even when
there are duplicate names.

[1] https://github.com/sybrenstuvel/random-blender-addons/blob/master/selection_set_selector.py
2018-02-08 10:46:08 +01:00
85bdc022ed Bone Selection Sets: simplified some poll methods
Inverting the condition allows for simpler code and non-conditional core
functionality.
2018-02-08 10:35:56 +01:00
d83880c35b Bone Selection Sets: @classmethod should have cls, not self
The first paramter of a @classmethod should be 'cls'.
2018-02-08 10:35:50 +01:00
131ea02a4c Cleanup: quiet strict name warnings for addons a..h. 2017-09-02 19:33:06 +10:00
b5115349ff Bone Selection Sets: Update wiki link, small cleanup
Bumped version to 2.0.1
Pep8 cleanup
Update wiki link
Remove unused variable
No other functional changes
2017-07-31 14:44:12 +02:00
04138bdf09 [Selection Sets] Added specials menu with options to remove bones and delete all sets 2016-07-06 08:24:45 +01:00
ab058bc492 [Selection Sets] Fix broken Assign operator, add functionality to move sets up/down the list 2016-03-30 23:14:42 +01:00
0203684358 [Selection Sets] Standard naming convention for new sets 2016-03-17 22:36:28 +00:00
39e7885ac7 [Selection Sets] Added menu to assign selected to new group 2016-03-17 22:36:22 +00:00
9f6319dbad [Selection Sets] Tweaks and optimizations 2016-03-17 22:36:10 +00:00
ca2164d5d7 [Selection Sets] Fix usage with proxies 2016-03-08 21:59:43 +00:00
7c8e9546b8 [Selection Sets] Fix to no longer selecting bones when hidden. Review of the UIList 2016-03-05 23:22:21 +00:00
97d8c82aec Fix problems with last commit 2016-03-03 01:31:03 +00:00
d7cd2f6dfe Refactored Selection Sets to have an interface similar to Bone Groups.
'Toggle' operator was converted into Select/Deselect, which adds and deletes from the selection, respectively.
Added Assign/Unassign to be able to edit a set.
Tweaked bl-info and properties descriptions and labels
Motionpath functions from the Gooseberry branch were removed
2016-03-03 01:08:21 +00:00