Rigify: Fix displaying multiple rig layer panel with older blend file. Blender 2.8 #60461

Closed
opened 2019-01-13 09:51:46 +01:00 by Osamu Takasugi · 15 comments

When openning other blend file that contains other rigify rig, Rigify's Rig Layers Panel & Rigify Main Properties Panel are displayed multiple like berow:
{35D16FE3-D14-4DDC-BC7D-98B708EDD21E}.png.jpg

It causes rig ui script has no unique bl_idname if script file name is same like "rig_ui.py" and making bl_idnames with file local variable "rig_id".

This patch fix it by define bl_idname as literal string.

fix-multiple-layer-panel-patch.diff

When openning other blend file that contains other rigify rig, Rigify's Rig Layers Panel & Rigify Main Properties Panel are displayed multiple like berow: ![{35D16FE3-[D14](https://archive.blender.org/developer/D14)-4DDC-BC7D-98B708EDD21E}.png.jpg](https://archive.blender.org/developer/F6273891/_35D16FE3-[D14](https://archive.blender.org/developer/D14)-4DDC-BC7D-98B708EDD21E_.png.jpg) It causes rig ui script has no unique bl_idname if script file name is same like "rig_ui.py" and making bl_idnames with file local variable "rig_id". This patch fix it by define bl_idname as literal string. [fix-multiple-layer-panel-patch.diff](https://archive.blender.org/developer/F6275910/fix-multiple-layer-panel-patch.diff)
Campbell Barton was assigned by Osamu Takasugi 2019-01-13 09:51:46 +01:00
Author

Added subscriber: @SAMtak

Added subscriber: @SAMtak

Added subscriber: @angavrilov

Added subscriber: @angavrilov

Don't touch that code, it's going to be rewritten in the next version of rigify, whenever it happens.

Don't touch that code, it's going to be rewritten in the next version of rigify, whenever it happens.
Campbell Barton was unassigned by Alexander Gavrilov 2019-01-13 10:09:04 +01:00
Lucio Rossi was assigned by Alexander Gavrilov 2019-01-13 10:09:04 +01:00

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Month-long delays in reviewing and accepting major changes to the core systems, as well as keeping things in a relatively unknown separate repository, get in the way of fixing issues the longer that goes on. This patch will be impossible to merge with the refactorings that are going on, and has to be rejected. However, the issue also can't be fixed in the new branch, because reviews are completely stalled.

Month-long delays in reviewing and accepting major changes to the core systems, as well as keeping things in a relatively unknown separate repository, get in the way of fixing issues the longer that goes on. This patch will be impossible to merge with the refactorings that are going on, and has to be rejected. However, the issue also can't be fixed in the new branch, because reviews are completely stalled.
Brendon Murphy changed title from Rigify: Fix displaying wrong multiple rig layer panel when openning other blend file. to Rigify: Fix displaying multiple rig layer panel with older blend file. Blender 2.8 2019-02-15 00:05:08 +01:00
Member

Added subscribers: @icappiello, @BrendonMurphy

Added subscribers: @icappiello, @BrendonMurphy
Member

@icappiello any opinions here?

@icappiello any opinions here?
Member

@BrendonMurphy
2.8 is a release with big change in critical areas.
Python rig-uis should be deprecated in next rigify major update in my opinion.
Still is not clear how/if/when armature system is going to get a redesign. We discussed with the foundation several option of pickers and ui implementations for armatures. All those required ui hacking to work in the viewport (2.79) and we abandoned the project. After some tests i know @PaoloAcampora made an ui picker with pyside QT that's working with 2.8. Until armature plans for 2.8x are more clear i'd put on hold any big effort in changing something is going to be abandoned anyway.
i'll try to have a deeper look on what happens here in the next days anyway.

edit:
naming multiple rigs just "rig" is something should be avoided anyway. That's why we implemented the 'advanced options" panel under generate button. Each rig should be named accordingly to the character. This way issues like this can be easily avoided (and would also help proxies creation/handling when animating multiple linked characters).
the easiest fix is for this is to define an unique rig name (for example "DUDE_rig" instead of "rig") under the "advanced options" panel. Already generated rigs can be easily fixed too. Just use overwrite option specifying a new name in te 'Rig Name' field. The code will take care of the rest.

@BrendonMurphy 2.8 is a release with big change in critical areas. Python rig-uis should be deprecated in next rigify major update in my opinion. Still is not clear how/if/when armature system is going to get a redesign. We discussed with the foundation several option of pickers and ui implementations for armatures. All those required ui hacking to work in the viewport (2.79) and we abandoned the project. After some tests i know @PaoloAcampora made an ui picker with pyside QT that's working with 2.8. Until armature plans for 2.8x are more clear i'd put on hold any big effort in changing something is going to be abandoned anyway. i'll try to have a deeper look on what happens here in the next days anyway. edit: naming multiple rigs just "rig" is something should be avoided anyway. That's why we implemented the 'advanced options" panel under generate button. Each rig should be named accordingly to the character. This way issues like this can be easily avoided (and would also help proxies creation/handling when animating multiple linked characters). the easiest fix is for this is to define an unique rig name (for example "DUDE_rig" instead of "rig") under the "advanced options" panel. Already generated rigs can be easily fixed too. Just use overwrite option specifying a new name in te 'Rig Name' field. The code will take care of the rest.
Member

Added subscriber: @PaoloAcampora

Added subscriber: @PaoloAcampora
Member

Thanks for the quick reply, I'll leave this open here for a look at when you guys are ready.

Thanks for the quick reply, I'll leave this open here for a look at when you guys are ready.
Lucio Rossi was unassigned by Brendon Murphy 2019-06-15 06:28:26 +02:00
Alexander Gavrilov was assigned by Brendon Murphy 2019-06-15 06:28:26 +02:00
Member

Added subscriber: @LucioRossi

Added subscriber: @LucioRossi
Member

Any result here?

Any result here?

I strongly suspect this may have fixed itself automatically when @ideasman42 removed loading script datablocks as modules.

I strongly suspect this may have fixed itself automatically when @ideasman42 removed loading script datablocks as modules.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

closing as resolved based on last comment. If issue persists please create a new task.

closing as resolved based on last comment. If issue persists please create a new task.
Sign in to join this conversation.
No Milestone
No project
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#60461
No description provided.