Scene Editor scripts?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hexdump
:warning: Old Version Published before Godot 3 was released.

Hi,

I would like to create a “Tool” script to make me bind 2 objects in the scene using a line. I will use this for example for binding messages like when this is picked up this door is opened.

Is there any possibility to do this now in godot?

The Tool keyword in scripts seems to be used to do some processing in editor and eventually graphycally update the node it is attached to. I need something at scene level not node level. For example I can’t find a way to override scene click to let my code know what object was first selected (when user pushed left button down), then draw the line as the user drags (while left button down) and what object was selected at the end (when user released left mouse button).

Is that possible?

Cheers.

look at this issue [Suggestion] Visually Linking Nodes · Issue #6015 · godotengine/godot · GitHub

puppetmaster- | 2016-08-11 09:26

:bust_in_silhouette: Reply From: hexdump

Thanks for the link. I will have to have a look at it.

Cheers!.