Driver with input variable RNA referencing custom properties take only boolean values #60966

Closed
opened 2019-01-29 03:47:28 +01:00 by Arjonais · 5 comments

System Information
Operating system: Kubuntu 18.04
Graphics card: GTX1080Ti / GTX690

Blender Version
Broken: 2.80, 957b4547ae, blender2.8, 2018-12-28, as found on the splash screen
Worked: 2.79

Short description of error
Drivers that reference custom properties do not update correctly.
If the custom property value is smaller than 1, it updates the driver to 0.
If the custom property value is bigger or equal to 1, it updates the driver to 1.
Problem remains with object-custom properties and armature-custom properties.
Works correctly with non-custom-property-variables.

Exact steps for others to reproduce the error
Open a new blender file.
Create a custom property on the Default Cube Object. Increase its hard limits.
Make a driver for X location. Use single property for variable and reference the custom property by path.
Slide the custom property. X only updates to x=0 or x=1
Try in 2.79. X updates exacty to the value of the custom property.

bug_drivers_boolean_values_only.blend

system-info.txt

**System Information** Operating system: Kubuntu 18.04 Graphics card: GTX1080Ti / GTX690 **Blender Version** Broken: 2.80, 957b4547aeeb, blender2.8, 2018-12-28, as found on the splash screen Worked: 2.79 **Short description of error** Drivers that reference custom properties do not update correctly. If the custom property value is smaller than 1, it updates the driver to 0. If the custom property value is bigger or equal to 1, it updates the driver to 1. Problem remains with object-custom properties and armature-custom properties. Works correctly with non-custom-property-variables. **Exact steps for others to reproduce the error** Open a new blender file. Create a custom property on the Default Cube Object. Increase its hard limits. Make a driver for X location. Use single property for variable and reference the custom property by path. Slide the custom property. X only updates to x=0 or x=1 Try in 2.79. X updates exacty to the value of the custom property. [bug_drivers_boolean_values_only.blend](https://archive.blender.org/developer/F6438427/bug_drivers_boolean_values_only.blend) [system-info.txt](https://archive.blender.org/developer/F6438426/system-info.txt)
Author

Added subscriber: @pacoarjonilla

Added subscriber: @pacoarjonilla
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Can confirm. Still trying to understand what is happening..

Can confirm. Still trying to understand what is happening..
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Jacques Lucke self-assigned this 2019-01-29 12:32:37 +01:00
Member

Ah, finally I understand why the drivers are edited in the graph editor :D
The problem in your file is that the interpolation type of the keyframes is set to "Constant". Everything works as expected when you set it back to "Linear".

https://docs.blender.org/manual/en/latest/animation/drivers/introduction.html#graph-view

Ah, finally I understand why the drivers are edited in the graph editor :D The problem in your file is that the interpolation type of the keyframes is set to "Constant". Everything works as expected when you set it back to "Linear". https://docs.blender.org/manual/en/latest/animation/drivers/introduction.html#graph-view
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
2 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#60966
No description provided.