Grease Pencil: Adding driver in Transform doesn't behave as expected during playback #88433
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#88433
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: MacOs 11.3
Graphics card: AMD Radeon Pro 5500M
Blender Version
Broken: Latest 3.0 Alpha
Worked: Never
Short description of error
Adding driver (via "Copy as new Driver and Paste Driver) in Transform (/Layers/Transform) doesn't behave as expected during playback. The viewport doesn't refresh even though the numerical values are clearly changing.
See attached Blend file and screen capture.
Driver.mp4
Exact steps for others to reproduce the error
GreasePencil_DriverProblem.blend
Thanks!
Piotr
Added subscriber: @Pyer
Added subscriber: @antoniov
Hi, this is still an issue. Any ideas on how to fix it? Or maybe a workaround? It's cool (and powerful!) to be able to use drivers with GP... Thanks!!!!
Added subscriber: @lichtwerk
@lichtwerk do you know what module is the right one for this driver bug?
Hello again. I don't know if this helps, but the above steps work as expected on regular objects. So this bug only affects Grease Pencil...
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the report, I can confirm the problem.
Drivers are usually handled by the #animation_rigging module, but the problem can spread to other areas.
Does this really work in Blender 2.93? (I can't find the transform panel to test in this version).
Hi again! It worked on 2.93 (probably alpha or beta, that's when GP Local Transforms first appeared). I did a job back in March and everything worked as expected. But when I load the scene today it no longer does (same Driver problem).
My Blender scene is dated from the 27th of March if that helps you find the 2.93 version of that time (I don't see alpha/beta builds on Blender's archive site).
I don't know where to look in Blender to see precisely what version was used for that scene.
Tell me if you need anything that can help you pinpoint the problem....
(Edited to correct my english)
Ok sorry for the multiple messages. Turns out I was wrong about 2.93 working! I thought I used Drivers on my scene but I wasn't...
So in short, in my experience, Drivers never worked with GP Local transforms.
I'm going to edit my first post to reflect that.
Sorry again for the confusion!
Sorry for asking, but is this going to get fixed?
Hm, weird.
Updates happen coorectly when choosing/changing the layer.
As a first note, here is the
--debug-depsgraph
outputIt works a tiny tad better if the setup is tweaked so we have separate strokes (then the driven at least gets updated):
GreasePencil_DriverProblem_Separate_strokes.blend
Another issue might be that location is never really used directly, but the matrix
gpl->layer_mat
instead.This matrix gets updated correctly via RNA callback
rna_GpencilLayerMatrix_update
(when tweaked through the UI or python), but these callbacks are not executed from the animation systems (so in the end, the matrix might not be up-to-date).Needs more investigation.
Sorry again for asking, but is this going to get fixed at some point?
Thanks,
Piotr
There is an issue when the animation is build twice in the depsgraph for the same ID (the drivers are set up for
Stroke
, but since the driver usesStroke
again, there is something going wrong).I'll try to get to the root of it.
For now though, you can use a workaround:
self
https://docs.blender.org/manual/en/2.93/animation/drivers/drivers_panel.html#expressionsself
in this case is already theGPencilLayer
, so you have to use `self.id_data.layers["Driver"].location[0]GreasePencil_DriverProblem_using_self.blend
This issue was referenced by
333db02e5d
This issue was referenced by
b18122451f
Changed status from 'Confirmed' to: 'Resolved'