Change the rotation mode of the selected bones and preserves the animation or poses you already made.
Select one or more bones in Pose mode, select the rotation mode you want them to use, hit the Convert! button.
It will automatically scan through all the keyframes of the selected bones in the timeline.
You can customize the sidebar tab in which to spawn the addon panel.
If you are unsure what rotation mode to use, look at the rotation modes cheat sheet!
Please not these are merely suggestions, what you will actually need may vary from one rig to another or even from one animation to another.
Note that there are two main coordinates system for bones. Blender uses Y down, so this is most likely the one you will use. But you might need to look at the X down in some cases like exporting to softwares that can only ready X down.
Bugfix, simplification and GUI tweaks.
Full Changelog: https://github.com/L0Lock/convertRotationMode/compare/1.4.2...1.4.3
This extension does not require special permissions.
I see you haven't tested this add-on with 4.2 You're accessing Copy Global Transforms incorrectly and operator can't perform, it throws big python error. Its not core add-on, so its not gonna be that easy to find. I would feel more comfortable if you failed operator unless Copy Global Transforms is enabled and told users to enable it. Enabling add-on without their consent, even if core feels very intrusive.
Also confused why there is enable auto keying info. Can't you detect if its enabled when operator runs, enable it if its disabled, and then disable it again after it finishes, so user won't notice a change?
Hi, thanks for the feedback! I had tested it on 4.2, but not with CGT disabled. That's a big oversight on my part, and I am sorry for that. I made the operator button disabled if requirements not met, hid the operator from the operator search, and also noticed that the addon's preferences didn't show its warning message when CGT disabled with a button to enable it, which is now fixed too. And you are right about autokeying, I also fixed that.
I also used the occasion to make the addons's prefs a bit more consisten with the extensions details.
Much more comfortable. Thanks!
In preferences alignment is weird and text is not visible on the left. Instead of splitting you can just use
layout.use_property_split = True
and then just put two properties on layout and it will align them perfectly
Sorry this came up after I reviewed this one and was reviewing other add-on. Massive spam in info with python errors when I switch context
convert_rotation_mode\operators.py", line 15, in poll return context.preferences.addons.find("copy_global_transform") != -1 and len(context.selected_pose_bones) > 0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object of type 'NoneType' has no len()
I assume that selected_pose_bones exist only in pose mode, so before you check for them you need to check that object mode is pose, otherwise if it tries to find pose_bones in any other mode it will spam the errors. And too much errors in console can be a crasher.
Hi, thanks for the feedback, I wish I caught that issue earlier ^^' But it is fixed now
Before I send a new version for approval, I did some tests for the preferences' layout:
While it does make the labels harder to get truncated with a small area size, it doesn't align with the rest of the extension's details, and I'm not a fan of how the checkbox's text is on its right side whereas the string's label is on its left side.
So instead, tried better aligning my original solution to the extension details and shortening the labels to reduce the truncating risk. The area width you see in the screenshot is the smallest one possible before their label get truncated, which is ~10% less wide than the default preferences window. Does this look like a good compromise?
Thanks again for the help!
You're free to use whichever UI you want, but things like this will always depend on UI scale, monitor size, etc. and can't guarantee how they look, while layout_split is always fixed size. It might not align with extensions details on other monitors
Thanks
Sign in to comment.
Ready for review