blenrig: fix copy attribute dependency #47840

Open
opened 2016-03-18 15:37:05 +01:00 by ¿? · 23 comments

System Information
Windows 7 GTX 770

Blender Version
Broken: 2.76b f337fea
Worked: ?

//Short description of error/Exact steps for others to reproduce the error
In the addons panel, I unchecked copy attributes and saved settings, subsequently when starting Blender it's enabled whenever I press ctrl+c but it's still unchecked in preferences. It disables if I check+uncheck it but re-enables after starting Blender again.
Note: I enabled it by default several versions ago (2.6x I believe) and while I just install over previous versions, I recently uninstalled prior to installation.

I found that just removing/deleting the addon fixes this but it installs with Blender by default, recreating the problem.//

Edit:
Summary:
The blenrig addon activates copy attributes addon & calls several operators, this can cause issues with startup/save user settings with both already activated, this is now a known issue & on @jpbouza-4 to do list.

**System Information** Windows 7 GTX 770 **Blender Version** Broken: 2.76b f337fea Worked: ? //**Short description of error**/**Exact steps for others to reproduce the error** In the addons panel, I unchecked copy attributes and saved settings, subsequently when starting Blender it's enabled whenever I press ctrl+c but it's still unchecked in preferences. It disables if I check+uncheck it but re-enables after starting Blender again. Note: I enabled it by default several versions ago (2.6x I believe) and while I just install over previous versions, I recently uninstalled prior to installation. I found that just removing/deleting the addon fixes this but it installs with Blender by default, recreating the problem.// Edit: Summary: The blenrig addon activates copy attributes addon & calls several operators, this can cause issues with startup/save user settings with both already activated, this is now a known issue & on @jpbouza-4 to do list.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Ebone

Added subscriber: @Ebone
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

hi, you have saved user settings with the addon enabled? Then behavior is expected. If you uncheck ( disable the addon ) then save user settings the addon should not appear.
I cannot confirm this other to say it sounds like your start up file is old & may have old data system. please rename your startup file & save, then open blender (it will be default window) & try again. I cannot in anyway confirm this using blender 2.77 rc2.

hi, you have saved user settings with the addon enabled? Then behavior is expected. If you uncheck ( disable the addon ) then save user settings the addon should not appear. I cannot confirm this other to say it sounds like your start up file is old & may have old data system. please rename your startup file & save, then open blender (it will be default window) & try again. I cannot in anyway confirm this using blender 2.77 rc2.
Author

Renamed startup file, started Blender, went to addon and enabled then disabled (because it's still enabled while "disabled"), saved user settings, saved startup file, closed Blender, Opened Blender. Still nothing.
Following your idea, I then renamed my userpref file and started to see what THAT would do and that works, the addon gets disabled by default with that...but I did a lot of changes to make Blender comfortable for me. Is there any way I can get all my old settings into a new userpref, or would I have to do it side-by-side and wing it after exporting key configuration?

Here's problem file:
zuserpref.blend

Renamed startup file, started Blender, went to addon and enabled then disabled (because it's still enabled while "disabled"), saved user settings, saved startup file, closed Blender, Opened Blender. Still nothing. Following your idea, I then renamed my userpref file and started to see what THAT would do and that works, the addon gets disabled by default with that...but I did a lot of changes to make Blender comfortable for me. Is there any way I can get all my old settings into a new userpref, or would I have to do it side-by-side and wing it after exporting key configuration? Here's problem file: [zuserpref.blend](https://archive.blender.org/developer/F297326/zuserpref.blend)
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Brendon Murphy self-assigned this 2016-03-19 15:06:00 +01:00
Member

hi, looks like you found the culprit. I tested your file in 2.77rc2 & found no issue with it, copy attributes was disabled. Unfortunately in this case you should start again & create a new userprefs if issue is persisting. You could try asking here: http://blenderartists.org/forum/forumdisplay.php?44-Technical-Support if the problem keeps happening in 2.77
Closing this report as resolved.

hi, looks like you found the culprit. I tested your file in 2.77rc2 & found no issue with it, copy attributes was disabled. Unfortunately in this case you should start again & create a new userprefs if issue is persisting. You could try asking here: http://blenderartists.org/forum/forumdisplay.php?44-Technical-Support if the problem keeps happening in 2.77 Closing this report as resolved.
Author

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
¿? reopened this issue 2016-03-22 04:54:42 +01:00
Author

Okay, I installed 2.77 and decided to do a fresh file, while re-enabling my previous addons and found that the problem came back after I enabled them all. I did some other tests on the fresh start and narrowed it down to occurring AFTER I enabled something. I went through the list and it occurs when I enable Blenrig. I subsequently disabled EVERY addon after renaming userpref, then only enabled Blenrig and the menu came back.

I redownloaded Blenrig from https://gitlab.com/jpbouza/BlenRig/tree/master just to be sure and it still happens
Can you reproduce with this?
If so, I assume that I should notify jpbouza, as the problem would be somewhere in the script and not Blender right?

Okay, I installed 2.77 and decided to do a fresh file, while re-enabling my previous addons and found that the problem came back after I enabled them all. I did some other tests on the fresh start and narrowed it down to occurring AFTER I enabled something. I went through the list and it occurs when I enable Blenrig. I subsequently disabled EVERY addon after renaming userpref, then only enabled Blenrig and the menu came back. I redownloaded Blenrig from https://gitlab.com/jpbouza/BlenRig/tree/master just to be sure and it still happens Can you reproduce with this? If so, I assume that I should notify jpbouza, as the problem would be somewhere in the script and not Blender right?

Added subscriber: @jpbouza-4

Added subscriber: @jpbouza-4

Hi guys!

Yes, this is an intended behavior because BlenRig uses the Copy Attributes addon for certain things, so it load the addon as a dependency.

If you want to disable that, you could comment lines 51 to 55 of the init.py file in BlenRig. Just note that by not having the Copy Attributes addon, IK FK snapping will fail.

Hi guys! Yes, this is an intended behavior because BlenRig uses the Copy Attributes addon for certain things, so it load the addon as a dependency. If you want to disable that, you could comment lines 51 to 55 of the _init_.py file in BlenRig. Just note that by not having the Copy Attributes addon, IK FK snapping will fail.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

@jpbouza-4, while you can enable other add-ons if you need to call their operators for eg.
I think its a bit risky to enable add-ons that override key-bindings and impose a different workflow.

This is up to you how you manage, but if people are having to edit your code to disable some add-on they don't like, its a hint that you might want not to depend on the add-on, or implement those things yourself... (you didn't say which things).

@jpbouza-4, while you can enable other add-ons if you need to call their operators for eg. I think its a bit risky to enable add-ons that override key-bindings and impose a different workflow. This is up to you how you manage, but if people are having to edit your code to disable some add-on they don't like, its a hint that you might want not to depend on the add-on, or implement those things yourself... *(you didn't say which things)*.

Added subscriber: @Sergey

Added subscriber: @Sergey

So is the real fix to make BlenRig independent from any other addons?

So is the real fix to make BlenRig independent from any other addons?

Mmmm. I just use the copy loc rot and scale operators from that addon, I should have to go into the addon or ask Bassam to see if I can append those operators to my addon.

I'll try to do it, though I don't think it will happen very soon, maybe next month I'll have time to dig into that.

Mmmm. I just use the copy loc rot and scale operators from that addon, I should have to go into the addon or ask Bassam to see if I can append those operators to my addon. I'll try to do it, though I don't think it will happen very soon, maybe next month I'll have time to dig into that.

In #47840#365444, @jpbouza-4 wrote:
Mmmm. I just use the copy loc rot and scale operators from that addon, I should have to go into the addon or ask Bassam to see if I can append those operators to my addon.

I'll try to do it, though I don't think it will happen very soon, maybe next month I'll have time to dig into that.

Sounds like these could be written as Python functions? (if they're being called from within your own script)
Both add-ons are GPL so no need to ask to use code.

> In #47840#365444, @jpbouza-4 wrote: > Mmmm. I just use the copy loc rot and scale operators from that addon, I should have to go into the addon or ask Bassam to see if I can append those operators to my addon. > > I'll try to do it, though I don't think it will happen very soon, maybe next month I'll have time to dig into that. Sounds like these could be written as Python functions? (if they're being called from within your own script) Both add-ons are GPL so no need to ask to use code.

Yes yes, I mean I'll have to ask Bassam to see where the heck those operators are in the addon, haha.

Yes yes, I mean I'll have to ask Bassam to see where the heck those operators are in the addon, haha.
Brendon Murphy removed their assignment 2016-04-01 07:19:10 +02:00
Juan Pablo Bouza was assigned by Brendon Murphy 2016-04-01 07:19:10 +02:00
Member

Assign to @jpbouza-4

Assign to @jpbouza-4
Brendon Murphy changed title from Copy Attributes addon enables while disabled to blenrig: fix copy attribute dependency 2016-04-01 07:28:24 +02:00
Member

hi, this is an uncommon case, normally it's not permitted to use developer.blender.org for external addons issues, given the association with Blender & Blender Cloud, it's appropriate to see this To Do, through to completion. (fix)

hi, this is an uncommon case, normally it's not permitted to use developer.blender.org for external addons issues, given the association with Blender & Blender Cloud, it's appropriate to see this To Do, through to completion. (fix)

Added subscriber: @LucianoMunoz

Added subscriber: @LucianoMunoz

will this ever be fixed?

will this ever be fixed?

Not right now! :D

And I don't it's worth to do anything until 2,8 comes out!

Not right now! :D And I don't it's worth to do anything until 2,8 comes out!
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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#47840
No description provided.