godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.17k stars 98 forks source link

Add support for custom_node VisualScript scenes #2653

Closed Gallilus closed 3 years ago

Gallilus commented 3 years ago

Describe the project you are working on

Developing a plugin 'Visual Script Editor Extention' asset/922 The aim is to make the transition between GDscript and VisualScript with less friction. Popular or essential extensions are then able to be implemented by the core team. While users don’t have to wait and are able to iterate before bothering the core team

Describe the problem or limitation you are having in your project

I'm am not able to reference a GraphNode of the VisualScriptEditor from the VisualScriptCustomNode Or the other way around.

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

Visual Script is marketed to none coders. So I think it would be a massive help for them if it was possible to provide a debug.tscn or preview.tscn with custom nodes. And I have multiple ideas that I would like to prototype. Also, this feature will be usable by all visual languages and plugins

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

To be implemented on VisualScriptCustomNode, VisualShaderNodeCustom hereafter referred to as 'visual_node'

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

The number of lines does not matter because this would be implemented in the plugin.

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

Show me the way and I’ll make it a plugin.

Gallilus commented 3 years ago

Understanding more about the inner workings. I now know this is a nice to have fantasy. That will be very difficult to maintain. Especially with the low amount of users in VisualScript at the moment.