Copy bones doesn't copy drivers #87415

Closed
opened 2021-04-12 11:56:02 +02:00 by Nahuel Belich · 15 comments

System Information
Operating system: Linux-5.4.0-70-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.39

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-04-11 06:02, hash: d3cb1d845b

Short description of error
When copy bones with drivers the drivers are not copied, does work with constraint but not drivers, this makes really difficult to do and copy half of a symmetrical rig

no copy drivers.mp4

Steps to reproduce the error.
dontcopydrivers.blend
1- open the file.
2-select armature and enter edit mode
3-Duplicate the bones using any method (shift+d, symmetry etc )
4-the new bone does not have a the driver in the X location

**System Information** Operating system: Linux-5.4.0-70-generic-x86_64-with-glibc2.31 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.39 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-04-11 06:02, hash: `d3cb1d845b` **Short description of error** When copy bones with drivers the drivers are not copied, does work with constraint but not drivers, this makes really difficult to do and copy half of a symmetrical rig [no copy drivers.mp4](https://archive.blender.org/developer/F9930307/no_copy_drivers.mp4) Steps to reproduce the error. [dontcopydrivers.blend](https://archive.blender.org/developer/F9930311/dontcopydrivers.blend) 1- open the file. 2-select armature and enter edit mode 3-Duplicate the bones using any method (shift+d, symmetry etc ) 4-the new bone does not have a the driver in the X location
Author

Added subscriber: @NahuelBelich

Added subscriber: @NahuelBelich

Added subscriber: @VLC

Added subscriber: @VLC

I have the same problem. I'm working on linux and blender 2.93 alpha.

I have the same problem. I'm working on linux and blender 2.93 alpha.
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

I believe this is working as intended. Duplication of the drivers is just not implemented/supported. (E.g. this would not classify as a bug)

I believe this is working as intended. Duplication of the drivers is just not implemented/supported. (E.g. this would not classify as a bug)

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

I'm not familiar with that.
If there are cases where the drivers are also copied, then this can be considered a bug.
Otherwise it is a request for modified/improved behavior.

I'm not familiar with that. If there are cases where the drivers are also copied, then this can be considered a bug. Otherwise it is a request for modified/improved behavior.
Member

I believe the problem is that drivers are attached to RNA properties. So duplicating them would be a bit complicated. You would first need to iterate over all relevant RNA properties of the bone (props that could have drivers) and then check every property if it has a driver attached to it. So maybe that's why we don't do it.

I believe the problem is that drivers are attached to RNA properties. So duplicating them would be a bit complicated. You would first need to iterate over all relevant RNA properties of the bone (props that could have drivers) and then check every property if it has a driver attached to it. So maybe that's why we don't do it.

Added subscriber: @Delano762

Added subscriber: @Delano762

Added subscriber: @pauanyu_blender

Added subscriber: @pauanyu_blender

Added subscriber: @Cigitia

Added subscriber: @Cigitia

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

In #87415#1148431, @filedescriptor wrote:
I believe the problem is that drivers are attached to RNA properties. So duplicating them would be a bit complicated. You would first need to iterate over all relevant RNA properties of the bone (props that could have drivers) and then check every property if it has a driver attached to it. So maybe that's why we don't do it.

That wouldn't be too hard, because all the RNA paths will start with pose.bone["bonename"]…, so matching on prefix is quite doable.

In #87415#1146939, @mano-wii wrote:
If there are cases where the drivers are also copied, then this can be considered a bug.
Otherwise it is a request for modified/improved behavior.

It would be handy if the drivers were copied along as well. Currently it's simply not implemented for bones. Then again, on the other hand it is implemented for objects. In any case this is a duplicate of #49182 (Bone drivers do not copy when duplicated).

> In #87415#1148431, @filedescriptor wrote: > I believe the problem is that drivers are attached to RNA properties. So duplicating them would be a bit complicated. You would first need to iterate over all relevant RNA properties of the bone (props that could have drivers) and then check every property if it has a driver attached to it. So maybe that's why we don't do it. That wouldn't be too hard, because all the RNA paths will start with `pose.bone["bonename"]…`, so matching on prefix is quite doable. > In #87415#1146939, @mano-wii wrote: > If there are cases where the drivers are also copied, then this can be considered a bug. > Otherwise it is a request for modified/improved behavior. It would be handy if the drivers were copied along as well. Currently it's simply not implemented for bones. Then again, on the other hand it **is** implemented for objects. In any case this is a duplicate of #49182 (Bone drivers do not copy when duplicated).

Closed as duplicate of #49182

Closed as duplicate of #49182
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
8 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#87415
No description provided.