Program Selecting Canvas Edge by Keyboard-Shortcut

Is it possible to select a CanvasEdge as per below? Where, I want to use something like the member function currentCanvas.selectOnly(egde) except selectOnly() only works for CanvasNode objects.


What I am trying to do is have the edge in blue below be highlighted by a key binding, after the parent node has been selected. Also I’d like to have it highlighted in another color.
image

Thanks

I worked out how to do it. You have to filter the CanvasData.edge member which is a CanvasEdgeData[] array to get the CanvasEdgeData object for the edge you want, then use the .color method of this object to set the color, then save then set the whole CanvasData. This can obviously be made neater.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.