Skip to content

Add 'frame selected nodes' context menu option for visual shaders #9868

@JUSTCAMH

Description

@JUSTCAMH

Describe the project you are working on

A metroidvania that uses some shaders

Describe the problem or limitation you are having in your project

The frame node in visual shaders is very helpful for organising a visual shader! This effectively lets you group parts of your shader and give it a name to help with readability. But this is a bit cumbersome to set up, and is very well hidden amongst the hundreds of other nodes in the add node menu, meaning a lot of devs miss this handy feature.

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

Add a context menu (opened via right click) option to 'frame selected nodes', which is available when selecting one or more nodes in visual shader. When this is selected, a frame node is created and all the selected nodes are placed inside. If not selecting any nodes, this option would be greyed out.

It'd also be neat if this selected the title field so that you could immediately start typing in the name for the frame after creating it.

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

See above

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

Not sure, though you can definitely add a frame node yourself, then select nodes and drop them in then reposition the nodes to where they were. But this feature is cumbersome, hidden (you need to know it's called frames, not groups) and is a common use case once you know they exist

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

Visual shaders are core

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions