Drivers are lost upon converting a collection instance to a local set of objects #70551

Closed
opened 2019-10-05 06:44:08 +02:00 by Russell · 7 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.48

Blender Version
Broken: version: 2.81 (sub 13), branch: master, commit date: 2019-10-03 14:29, hash: 8c991bf63a
Worked: (optional)

Short description of error
Driving an object setting from its own custom property can be easy with a driver expression, for example setting a rotation control to: radians(self["prop"]*360)

Duplicating the object will produce a copy that also has the same internal driver expression independent of the original. However, if you instead put the object in a collection and then add an instance of the collection you have no access to any custom properties, which is its own bug that I'll report separately. So you go to Object->Apply->Make Instances Real to convert the collection instance to a local copy. This step removes the drivers.

Exact steps for others to reproduce the error

  1. Add a custom property to the default cube. Leave it as the default 'prop' property.
  2. Add a driver to the x rotation transform using the expression: radians(self["prop"]*360)
  3. Be sure to check the 'use self' checkbox below the python expression box.
  4. Put the cube object inside a collection.
  5. Add an instance of that new collection to the scene.
  6. Notice that there's no access to any custom properties now that the cube is in a collection instance, which is also a bug.
  7. Object->Apply->Make Instances Real, which converts the collection instance to its base objects
  8. The driver is gone.
**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.48 **Blender Version** Broken: version: 2.81 (sub 13), branch: master, commit date: 2019-10-03 14:29, hash: `8c991bf63a` Worked: (optional) **Short description of error** Driving an object setting from its own custom property can be easy with a driver expression, for example setting a rotation control to: radians(self["prop"]*360) Duplicating the object will produce a copy that also has the same internal driver expression independent of the original. However, if you instead put the object in a collection and then add an instance of the collection you have no access to any custom properties, which is its own bug that I'll report separately. So you go to Object->Apply->Make Instances Real to convert the collection instance to a local copy. This step removes the drivers. **Exact steps for others to reproduce the error** 1. Add a custom property to the default cube. Leave it as the default 'prop' property. 2. Add a driver to the x rotation transform using the expression: radians(self["prop"]*360) 3. Be sure to check the 'use self' checkbox below the python expression box. 4. Put the cube object inside a collection. 5. Add an instance of that new collection to the scene. 6. Notice that there's no access to any custom properties now that the cube is in a collection instance, which is also a bug. 7. Object->Apply->Make Instances Real, which converts the collection instance to its base objects 8. The driver is gone.
Author

Added subscriber: @Russ1642

Added subscriber: @Russ1642

Added subscribers: @dr.sybren, @dfelinto

Added subscribers: @dr.sybren, @dfelinto

Hi, thanksfor the report.
Note: This was happening already with groups in 2.79:

groups.blend

(open the file and convert the right-most cube to real)

I believe this may be by design-ish. The conversion from instance to real in a way bakes the current transformations into the new object.
@dr.sybren is this something the animation module is interesting on looking at? If not feel free to close the report

  1. Notice that there's no access to any custom properties now that the cube is in a collection instance, which is also a bug.

Please report different bugs separately. And as far as I can tell this is not a bug.

Hi, thanksfor the report. Note: This was happening already with groups in 2.79: [groups.blend](https://archive.blender.org/developer/F7803357/groups.blend) (open the file and convert the right-most cube to real) I believe this may be by design-ish. The conversion from instance to real in a way bakes the current transformations into the new object. @dr.sybren is this something the animation module is interesting on looking at? If not feel free to close the report > 6. Notice that there's no access to any custom properties now that the cube is in a collection instance, which is also a bug. Please report different bugs separately. And as far as I can tell this is not a bug.
Bastien Montagne was assigned by Sybren A. Stüvel 2019-10-30 10:05:38 +01:00
Bastien Montagne removed their assignment 2019-11-08 11:37:17 +01:00

Added subscriber: @mont29

Added subscriber: @mont29

This is indeed working as expected in the code (see call to BKE_animdata_free() in make_object_duplilist_real(), so not a bug. Whether we want a different behavior here is design task, which I'll let to the anim team for handling.

This is indeed working as expected in the code (see call to `BKE_animdata_free()` in `make_object_duplilist_real()`, so not a bug. Whether we want a different behavior here is design task, which I'll let to the anim team for handling.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sybren A. Stüvel self-assigned this 2019-12-06 16:24:47 +01:00

The same happens (also in make_object_duplilist_real()) for constraints, they also disappear.

I'm inclined to close this issue, as designing new behaviour will take quite some work and isn't planned now. It's not a trivial thing to solve.

The same happens (also in `make_object_duplilist_real()`) for constraints, they also disappear. I'm inclined to close this issue, as designing new behaviour will take quite some work and isn't planned now. It's not a trivial thing to solve.
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
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#70551
No description provided.