a)
You could start playing around and try to manipulate the SVG cornerpints but that is a lot of work and Hype doesn’t provide an interface for that.
b)
You can also just scale the bounding box of the “wire”. In that case you would set the wire to a 100px by 100px box initially and then scale base on the distance of the two drag elements. There is an option in SVG to preserve line width when sacaled instead of squashing it.
c)
You could animate the line (linear ease) going up and down and limit the dragging to one axis (y hence top). Then you could convert the drag position to the timeline offset using a factor like 1 sec = 60 px.
Hi Max - thanks for taking a look. I was about to go with b (go atan2!) and stick with linear curves. Not ideal, but hopefully in the future we can attach things better. Cheers
Hey gang - Thanks to Max, here’s the final project. Making one script per wire was a bit irksome, but this is entirely why I love this software - and the forum.
that may have happened because you just duplicated the code for each ... where it'll need some refactoring to make generic code from the given example (-> which indeed is great @MaxZieb)
Beyond my ken, and too much to ask of forum members. Max has already done yeoman’s duty here.
Hype inhabits this strange space between Design apps (like Sketch) in which all the data is relatively closed off from the user (ie, apply an expression to distribute points -> cannot be done) and other apps like 3D apps (Maya, Houdini, Cinema4D) in which it can be done easily, or at least, inherently within its design. This in-between position skews the definition of what is Expected because the app is so powerful and yet things like linking positions of two elements cannot be done without coding. This is why I used the word Irksome. To be clear: Max’s solution was a total success for me, and extremely appreciated.