Page MenuHome

blenrig: fix copy attribute dependency
Open, NormalPublic

Description

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 @Juan Pablo Bouza (jpbouza) to do list.

Details

Type
To Do

Event Timeline

¿? (edtion) updated the task description. (Show Details)
¿? (edtion) raised the priority of this task from to Needs Triage by Developer.
¿? (edtion) added a project: Addons.
¿? (edtion) set Type to Bug.
¿? (edtion) added a subscriber: ¿? (edtion).

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.

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:

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.

¿? (edtion) reopened this task as Open.Mar 22 2016, 4:54 AM

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?

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.

@Juan Pablo Bouza (jpbouza), 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).

Sergey Sharybin (sergey) triaged this task as Normal priority.Mar 22 2016, 2:00 PM

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.

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.

Brendon Murphy (meta-androcto) renamed this task from Copy Attributes addon enables while disabled to blenrig: fix copy attribute dependency.Apr 1 2016, 7:28 AM
Brendon Murphy (meta-androcto) updated the task description. (Show Details)
Brendon Murphy (meta-androcto) changed Type from Bug to To Do.

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)

Not right now! :D

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