You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
I'm trying to limit the number of connections for an input port in a GraphNode node, so that we can only make one connection to one port, and not several, I tried to implement this using is_node_connected(from_node,from_port,to_node,to_port), but we have to enter extra arguments of the first node, without them the function will not work correctly, especially since I would like to know if the port is connected to anything at all, and not to a specific node
Describe the feature / enhancement and how it helps to overcome the problem or limitation
There is no function that would determine whether a port is connected to something (true/false), or it would be possible to return the number of connections of a certain GraphNode and one of its ports, using a new function
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
The new function would return the number of connections of one of the ports: connections_count(node: StringName, port: int)
If this enhancement will not be used often, can it be worked around with a few lines of script?
At the moment, to find out the number of connections, we will have to use more complex methods, which is difficult especially for beginners, this function would be very useful
Is there a reason why this should be core and not an add-on in the asset library?
Same as above
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
Plugin based on GraphEdit
Describe the problem or limitation you are having in your project
I'm trying to limit the number of connections for an input port in a GraphNode node, so that we can only make one connection to one port, and not several, I tried to implement this using is_node_connected(from_node,from_port,to_node,to_port), but we have to enter extra arguments of the first node, without them the function will not work correctly, especially since I would like to know if the port is connected to anything at all, and not to a specific node
Describe the feature / enhancement and how it helps to overcome the problem or limitation
There is no function that would determine whether a port is connected to something (true/false), or it would be possible to return the number of connections of a certain GraphNode and one of its ports, using a new function
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
The new function would return the number of connections of one of the ports:
connections_count(node: StringName, port: int)
If this enhancement will not be used often, can it be worked around with a few lines of script?
At the moment, to find out the number of connections, we will have to use more complex methods, which is difficult especially for beginners, this function would be very useful
Is there a reason why this should be core and not an add-on in the asset library?
Same as above
The text was updated successfully, but these errors were encountered: