Rigify generation broken on current master #53356

Closed
opened 2017-11-20 08:25:03 +01:00 by Julien Duroure · 16 comments
Member

System Information
Ubuntu 14.04

Blender Version
Broken: current master (build from Nov 20th)
Worked: 2.79

Short description of error
Rigify generation broken on current master

Exact steps for others to reproduce the error

  • Enable Rigify addon
  • add Meta Rig
  • Generate --> Python error

Fetch rig.
Clear rig animation data.
Traceback (most recent call last):
File "/home/julien/Bureau/blender-2.79-784614655f5-linux-glibc219-x86_64/2.79/scripts/addons/rigify/ui.py", line 756, in execute
generate.generate_rig(context, context.object)
File "/home/julien/Bureau/blender-2.79-784614655f5-linux-glibc219-x86_64/2.79/scripts/addons/rigify/generate.py", line 182, in generate_rig
bone_gen.bbone_in = bone.bbone_in
AttributeError: 'Bone' object has no attribute 'bbone_in'

location: :-1

location: :-1

Works on 2.79

**System Information** Ubuntu 14.04 **Blender Version** Broken: current master (build from Nov 20th) Worked: 2.79 **Short description of error** Rigify generation broken on current master **Exact steps for others to reproduce the error** * Enable Rigify addon * add Meta Rig * Generate --> Python error > Fetch rig. > Clear rig animation data. > Traceback (most recent call last): > File "/home/julien/Bureau/blender-2.79-784614655f5-linux-glibc219-x86_64/2.79/scripts/addons/rigify/ui.py", line 756, in execute > generate.generate_rig(context, context.object) > File "/home/julien/Bureau/blender-2.79-784614655f5-linux-glibc219-x86_64/2.79/scripts/addons/rigify/generate.py", line 182, in generate_rig > bone_gen.bbone_in = bone.bbone_in > AttributeError: 'Bone' object has no attribute 'bbone_in' > > location: <unknown location>:-1 > > location: <unknown location>:-1 > Works on 2.79
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure

#53466 was marked as duplicate of this issue

#53466 was marked as duplicate of this issue

#53423 was marked as duplicate of this issue

#53423 was marked as duplicate of this issue
Ivan Cappiello was assigned by Julien Duroure 2017-11-20 08:25:26 +01:00

Added subscriber: @LucioRossi

Added subscriber: @LucioRossi
Member

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung
Member

See blender/blender@a819ef65c0

The bbone properties for Ease In/Out were renamed (e.g. bbone_in -> bbone_easein), and there are now Rig Restpose (Bone/EditBone) vs Pose (PoseBone) versions of these. Drivers and editmode editing should use the restpose ones.

See blender/blender@a819ef65c0 The bbone properties for Ease In/Out were renamed (e.g. `bbone_in` -> `bbone_easein`), and there are now Rig Restpose (Bone/EditBone) vs Pose (PoseBone) versions of these. Drivers and editmode editing should use the restpose ones.
Member

NOTE: I started looking into fixing this, and quickly found that there were quite a few occurrences of this. So, I'll leave this for you guys to handle.

NOTE: I started looking into fixing this, and quickly found that there were quite a few occurrences of this. So, I'll leave this for you guys to handle.
Ivan Cappiello was unassigned by Lucio Rossi 2017-11-20 12:12:47 +01:00

Added subscriber: @icappiello

Added subscriber: @icappiello

Yes I confirm it's related to a819ef65c0

It looks like already made rigs are not affected. The new bbone_easein takes in the same value as the bbone_in previously defined, so it's just a matter of patching Rigify

unfortunately now we have 2 bbone prop, one for edit and one for pose bones. The pose bones one is reset to 0 and this breaks compatibility with old rigs

Yes I confirm it's related to https://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/a819ef65c07131ddb203a55bd8dc4e3207130b64 ~~It looks like already made rigs are not affected. The new bbone_easein takes in the same value as the bbone_in previously defined, so it's just a matter of patching Rigify~~ unfortunately now we have 2 bbone prop, one for edit and one for pose bones. The pose bones one is reset to 0 and this breaks compatibility with old rigs
Lucio Rossi self-assigned this 2017-11-20 12:20:41 +01:00
Member

Added subscriber: @Ebone

Added subscriber: @Ebone
Member

@LucioRossi: Could you explain how/why the rigs get broken if the setting found in the pose bone settings gets reset to 0? What exactly is the problem?

If it's just a matter of animation + drivers on old files not getting version patched to use the new properties (i.e. the settings don't work out of the box when loading old files), it's not such a big problem to fix. (While we haven't actually got version patching code that does this sort of thing anymore AFAIK, in the early 2.5 days we did have a script that could be used for easily patching files; it's also not too hard to add version patching code to fix these problems)

Or is it something else? For example, are there now problems deforming meshes if you just keep animating only the edit property and leaving the posemode one on 0 (as AFAIK, it should be ok just doing it that way?)

@Ebone: Thanks for the patched addon files.

@LucioRossi: Could you explain how/why the rigs get broken if the setting found in the pose bone settings gets reset to 0? What exactly is the problem? If it's just a matter of animation + drivers on old files not getting version patched to use the new properties (i.e. the settings don't work out of the box when loading old files), it's not such a big problem to fix. (While we haven't actually got version patching code that does this sort of thing anymore AFAIK, in the early 2.5 days we did have a script that could be used for easily patching files; it's also not too hard to add version patching code to fix these problems) Or is it something else? For example, are there now problems deforming meshes if you just keep animating only the edit property and leaving the posemode one on 0 (as AFAIK, it should be ok just doing it that way?) @Ebone: Thanks for the patched addon files.

@JoshuaLeung the problem is with the property name and fixing it in Rigify is straightforward.

As I mentioned in the concern to https://developer.blender.org/rBa819ef65c07131ddb203a55bd8dc4e3207130b64 the problem is with animations and drivers not pointing to the correct property anymore, and this is independent of Rigify.

This can be solved again - I guess - just changing the name of the property

Anyway, I don't know if patching is a good solution. Maybe good if the script is in the file loader, but It certainly is not if it's an overhead to all animators wanting to use 2.79a. The choice is up to blender coders though

@JoshuaLeung the problem is with the property name and fixing it in Rigify is straightforward. As I mentioned in the concern to https://developer.blender.org/rBa819ef65c07131ddb203a55bd8dc4e3207130b64 the problem is with animations and drivers not pointing to the correct property anymore, and this is independent of Rigify. This can be solved again - I guess - just changing the name of the property Anyway, I don't know if patching is a good solution. Maybe good if the script is in the file loader, but It certainly is not if it's an overhead to all animators wanting to use 2.79a. The choice is up to blender coders though
Member

Added subscriber: @EdHernandez

Added subscriber: @EdHernandez

This issue was referenced by 1f2b515623

This issue was referenced by 1f2b515623706d95409bad0b21be27e4fa480454

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#53356
No description provided.