Color Ramp node keyed colors and keyed positions jumps to the next color stop when adding or removing color stops #77931

Open
opened 2020-06-16 22:09:25 +02:00 by Gilberto Rodrigues · 8 comments
Contributor

Blender Version
Broken: 2.7x, 2.8x

Short description of error
The keyed color and position should be assigned to the color stop itself, not it's order. As of now it follows the order of stops, so the keyed color and position jumps from one color stop to next one when a color stop is added or removed.

2020-06-16 17-27-47.mp4 2020-06-16 17-13-58.mp4

Exact steps for others to reproduce the error

  • open blender
  • go the shader editor
  • make a new material
  • add a color ramp node
  • Press "i" with the mouse hovering the black bar to key the color.
    now the white color stop and do the same, key the color by pressing "i" over it.
    now select the black color stop and remove it by clicking the "-"
  • press space bar to play, the keyed color will jump from the black one that was removed to the white one.
    The same happens if you key the color stop's position instead of it's color.
    It also jumps when adding in a color stop instead of removing one.
**Blender Version** Broken: 2.7x, 2.8x **Short description of error** The keyed color and position should be assigned to the color stop itself, not it's order. As of now it follows the order of stops, so the keyed color and position jumps from one color stop to next one when a color stop is added or removed. |[2020-06-16 17-27-47.mp4](https://archive.blender.org/developer/F8626458/2020-06-16_17-27-47.mp4)|[2020-06-16 17-13-58.mp4](https://archive.blender.org/developer/F8626479/2020-06-16_17-13-58.mp4) | -- | -- | **Exact steps for others to reproduce the error** - open blender - go the shader editor - make a new material - add a color ramp node - Press "i" with the mouse hovering the black bar to key the color. now the white color stop and do the same, key the color by pressing "i" over it. now select the black color stop and remove it by clicking the "-" - press space bar to play, the keyed color will jump from the black one that was removed to the white one. The same happens if you key the color stop's position instead of it's color. It also jumps when adding in a color stop instead of removing one.
Author
Contributor

Added subscriber: @Gilberto.R

Added subscriber: @Gilberto.R
Author
Contributor
[2020-06-16 17-27-47.mp4](https://archive.blender.org/developer/F8626458/2020-06-16_17-27-47.mp4)
Author
Contributor
[2020-06-16 17-13-58.mp4](https://archive.blender.org/developer/F8626479/2020-06-16_17-13-58.mp4)

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I can imagine why this happens.
Perhaps a diver/keyframe takes a stop reference as being index + position.
When you delete a stop you change the index of the rest, but the references in the drivers are not updated.

I imagine the confusion can be greater if a driver changes the order of stops.

Perhaps updating references can add a lot of overhead to the code. So it is not guaranteed that it is worth fixing it.

I can imagine why this happens. Perhaps a diver/keyframe takes a stop reference as being index + position. When you delete a stop you change the index of the rest, but the references in the drivers are not updated. I imagine the confusion can be greater if a driver changes the order of stops. Perhaps updating references can add a lot of overhead to the code. So it is not guaranteed that it is worth fixing it.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

It's unlikely that this will be worked on soon. So I'll reclassify this as known issue.

It might be worth considering whether we could give each stop some kind of unique id that is referenced by fcurves and drivers, instead of referencing them by index. That might be much easier to do than to update all references when a new stop is inserted or one is removed.

It's unlikely that this will be worked on soon. So I'll reclassify this as known issue. It might be worth considering whether we could give each stop some kind of unique id that is referenced by fcurves and drivers, instead of referencing them by index. That might be much easier to do than to update all references when a new stop is inserted or one is removed.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:46 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 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#77931
No description provided.