GPv3: Move channels #111009
No reviewers
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#111009
Loading…
Reference in New Issue
No description provided.
Delete Branch "PratikPB2123:gpv3-move-channels"
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?
This will allow to move selected channels to Top/Bottom/Up/Down in the list.
Existing "island" approch can not be used here since layers are now
stored in tree.
Hey, thanks for the patch.
I think there is a problem with how the layer move with layer groups.
Here is an example in the following video, when I'm moving up the layer called "Hair", I would expect it to go outside of its layer group and be placed right after the layer called "Clouds".
Instead, it is moving the layer "Clouds" inside of the layer group, which is weird.
Maybe this would be easier to test once #111015 is merged, because then we would actually see the groups in the dopesheet.
I see, thanks. Will rewrite the logic 😅
GPv3: Move channelsto WIP: GPv3: Move channels@PratikPB2123 hey, thanks for working on this. I think there are two things that we need to work on before this can be finalized.
add_group/layer_before/after
functions should be rewritten to something likeinsert_node_before/after
. This is a refactor that I have on my list, but haven't gotten to yet. Moving the selection up and down should also work on groups.It might also be worth it to write the move up/down as a core function.
Hi, thanks for mentioning this.
Can do that myself in a new PR :)
So far, this PR moves all "selected" channels correctly in Up/Top/Bottom direction to the correct group. (only "down" is remaining)
👍
In GreasePencil class? or in
anim_channels_edit.cc
In the
GreasePencil
struct, yea. It could be a function like so:GreasePencil::move_nodes_up(Span<blender::bke::greasepencil::TreeNode *> nodes)
@filedescriptor / @amelief hi, all cases are handled now (also created new functions in GreasePencil struct).
WIP: GPv3: Move channelsto GPv3: Move channelsAfter some more thought, I think it's best if we simplify this a bit more.
For now it's best if we don't change the hierarchy and move layers in and out of their groups. We can add more operators for that later.
Here are my suggested changes (also needs a rebase on main):
Thanks. All changes are yours now 😅
Will update the PR
Hey @PratikPB2123 Sorry for changing this a bunch... Do you want me to open a new PR for this? Or would you still want to do the changes yourself? Either works for me :)
Hi, I think you can take the credit and make a new PR/commit yourself ;)
Sorry for holding this PR for long.
Merged with
b66c0676b4
Pull request closed