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

"Apply as Rest Pose" fails in Blender 4.0+ #649

Open
loriducci opened this issue Nov 22, 2023 · 5 comments
Open

"Apply as Rest Pose" fails in Blender 4.0+ #649

loriducci opened this issue Nov 22, 2023 · 5 comments

Comments

@loriducci
Copy link

Currently using the development version of Cats from here with Blender 4.0.1, this same operation works on 3.6.2.

To reproduce: Enter pose mode>Deform armature>Apply as Rest Pose

Gives the following error:

bpy.ops.cats_manual.pose_to_rest()

Python: Traceback (most recent call last): File "C:\Users\lxadmin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\cats-blender-plugin-development\tools\armature_manual.py", line 383, in execute PoseToRest.apply_armature_to_mesh_with_no_shape_keys(armature_obj, mesh_obj) File "C:\Users\lxadmin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\cats-blender-plugin-development\tools\armature_manual.py", line 414, in apply_armature_to_mesh_with_no_shape_keys bpy.ops.object.modifier_move_to_index(context_override, modifier=mod_name, index=0) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 106, in __call__ C_exec, C_undo = _BPyOpsSubModOp._parse_args(args) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 60, in _parse_args raise ValueError("1-2 args execution context is supported") ValueError: 1-2 args execution context is supported

@Yusarina
Copy link

This is because of some big changes in 4.0 which breaks alot of plugins due to api changes.

I would not count on cats getting updated for 4.0 as the project seems mainly abandoned and quite a few things won't work as well due to MMD Tools not being updated to 4.0 as well.

However there is a pull request which does seem to fix the issue for pose mode #648

@OneLegitDev
Copy link

I have a version I edited which has this functionality working. Possibly thinking of making a fork and letting people use it!

@Sabiryth
Copy link

This is a VERY hackey fix, but I cloned the CATS repo into my blender addons dir and checked out the #648 branch. Blender happily enabled the custom addon and that branch fixes the "Apply as Rest Pose" feature.

@OneLegitDev
Copy link

I've also fixed this issue in my fork of the project https://github.com/OneLegitDev/cats-blender-plugin-4.0 as well as a few other fixes.

@loriducci
Copy link
Author

The branch by @Yusarina also includes a fix for this and I've been using it successfully in 4.0+ Thanks everyone! https://github.com/Yusarina/Cats-Blender-Plugin-Unofficial-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants