Rigify UI throws an error ('thigh_fk' cannot be found) #89910

Closed
opened 2021-07-17 07:03:08 +02:00 by rolando aguilera · 14 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11

Blender Version
Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: blender/blender@1b8d33b18c
Worked: 2.92

Behavior changed in blender/blender@afa5da9ce0

Short description of error
Rigify UI throws an error ('thigh_fk' cannot be found)

Exact steps for others to reproduce the error

fm 001.blend

  • Open above .blend (allow rigify UI script execution)
  • select all bones
  • open the sidebar N panel
  • notice a lot of controls missing (use 2.92 to see the difference)
  • notice an error in the console:

"Python: Traceback (most recent call last):
File "C:\Users\rolan\Dropbox\Blender\Pixelodeon\Modulo 2\07 Cuepro completo\Personaje.blend\rig_ui.py", line 793, in draw
AttributeError: 'POSE_OT_rigify_leg_fk2ik_zdqgjyjd0c7e85b5' object has no attribute 'thigh_fk'

location: :-1

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11 **Blender Version** Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: `blender/blender@1b8d33b18c` Worked: 2.92 Behavior changed in blender/blender@afa5da9ce0 **Short description of error** Rigify UI throws an error ('thigh_fk' cannot be found) **Exact steps for others to reproduce the error** [fm 001.blend](https://archive.blender.org/developer/F10227391/fm_001.blend) - Open above .blend (allow rigify UI script execution) - select all bones - open the sidebar `N` panel - notice a lot of controls missing (use 2.92 to see the difference) - notice an error in the console: > "Python: Traceback (most recent call last): > File "C:\Users\rolan\Dropbox\Blender\Pixelodeon\Modulo 2\07 Cuepro completo\Personaje.blend\rig_ui.py", line 793, in draw > AttributeError: 'POSE_OT_rigify_leg_fk2ik_zdqgjyjd0c7e85b5' object has no attribute 'thigh_fk' > > location: <unknown location>:-1

Added subscriber: @Rolinga

Added subscriber: @Rolinga
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Can please add a simple test file with steps to reproduce ? Issue is possibly related to rigify addon so changing the tag

Can please add a simple test file with steps to reproduce ? Issue is possibly related to rigify addon so changing the tag
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Hi there, this is the same file that I've using when the problems appears.
fm 001.blend

Thanks and sorry my english, I'm from Chile... but I try hard to make me understand!

  • RAS
Hi there, this is the same file that I've using when the problems appears. [fm 001.blend](https://archive.blender.org/developer/F10227391/fm_001.blend) Thanks and sorry my english, I'm from Chile... but I try hard to make me understand! - RAS
rolando aguilera changed title from Insert keyframe for all bones selected doesn't work with the "n" panel shown... I hace to close it to go on. to Insert keyframe for all bones selected doesn't work with the "n" panel shown... I have to close it to go on. 2021-07-18 20:19:21 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Think the keyframes are actually inserted correctly.

Rigify has a problem though [which was still possible in 2.92, only 2.93 onwards has this problem]:

Info: Successfully added 750 keyframes for keying set 'BBone Shape'

Python: Traceback (most recent call last):
  File "/T89910/fm 001.blend/rig_ui.py", line 793, in draw
AttributeError: 'POSE_OT_rigify_leg_fk2ik_zdqgjyjd0c7e85b5' object has no attribute 'thigh_fk'
Think the keyframes are actually inserted correctly. Rigify has a problem though [which was still possible in 2.92, only 2.93 onwards has this problem]: ``` Info: Successfully added 750 keyframes for keying set 'BBone Shape' Python: Traceback (most recent call last): File "/T89910/fm 001.blend/rig_ui.py", line 793, in draw AttributeError: 'POSE_OT_rigify_leg_fk2ik_zdqgjyjd0c7e85b5' object has no attribute 'thigh_fk' ```
Member

Added subscribers: @Mets, @angavrilov

Added subscribers: @Mets, @angavrilov
Member

Behavior changed in blender/blender@afa5da9ce0

@Mets , @angavrilov : does this ring a bell?

Behavior changed in blender/blender@afa5da9ce0 @Mets , @angavrilov : does this ring a bell?
Philipp Oeser changed title from Insert keyframe for all bones selected doesn't work with the "n" panel shown... I have to close it to go on. to Rigify UI throws an error ('thigh_fk' cannot be found) 2021-07-19 13:57:49 +02:00
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Member

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'
Member

In the attached file, the properties in rig_ui.py are defined using the old = assignment, but looking at the git blame of the code that generates that code, it has been kept up to date immediately with Blender 2.8, and changed to the new : annotation syntax.

So this means your rig was generated with a version of Rigify and Blender that are more than 3 years old, and that's why it's no longer compatible with current Blender.

The ideal solution here is to find the metarig that generated this rig, and re-generate it with the current Rigify. If that's not available because the rig's author has made the huge mistake of discarding the metarig (which should never ever be done) then your best bet is to simply go into rig_ui.py and replace the = signs in the operator class definitions with : signs, as per Blender 2.80 Python API requirements.

Thanks for the report, but there's no bug here, so closing. Hope the above info will help with the problem though.

In the attached file, the properties in rig_ui.py are defined using the old `=` assignment, but looking at the git blame of the code that generates that code, it has been kept up to date immediately with Blender 2.8, and changed to the new `:` annotation syntax. So this means your rig was generated with a version of Rigify and Blender that are more than 3 years old, and that's why it's no longer compatible with current Blender. The ideal solution here is to find the metarig that generated this rig, and re-generate it with the current Rigify. If that's not available because the rig's author has made the huge mistake of discarding the metarig (which should never ever be done) then your best bet is to simply go into rig_ui.py and replace the `=` signs in the operator class definitions with `:` signs, as per Blender 2.80 Python API requirements. Thanks for the report, but there's no bug here, so closing. Hope the above info will help with the problem though.
Member

thx looking at this @Mets !

thx looking at this @Mets !

Thanks a lots, and sorry for reporting a non bug issue!

Cheers... and also thanks for all your work!!

  • RAS
Thanks a lots, and sorry for reporting a non bug issue! Cheers... and also thanks for all your work!! - RAS
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#89910
No description provided.