godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Add recursive Tree check/uncheck #7295

Open Flynsarmy opened 1 year ago

Flynsarmy commented 1 year ago

Describe the project you are working on

A third person character with animation tree.

Describe the problem or limitation you are having in your project

Characters can have a lot of bones. When blending in AnimationTree it's common to need to select a chunk of the hierarchy and this currently needs to be done one bone at a time. Not only does this feel very clunky and time unnecessarily time consuming, it can also be confusing when jumping from leaf nodes back up to a parent branch. image

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Say I want to create an 'UpperBodyBlend'. I add a Blend2 to my AnimationTree and instead of invidiaully clicking Spine, Chest, UpperChest, RightShoulder, RightUpperArm, RightLowerArm etc bones, I instead just shift+click Spine and it + all its children are toggled.

If this enhancement will not be used often, can it be worked around with a few lines of script?

It can be worked around by individually clicking every bone in the hierarchy.

Is there a reason why this should be core and not an add-on in the asset library?

The feature doesn't make senes to have aon a per-project basis. Core works better here.

AThousandShips commented 1 year ago

Should be relatively straight forward to accomplish, will investigate some ideas, would be a good feature to add to Tree in general