03-06-2019, 01:13 PM
Hello again, as the title says I want to connect multiple splines to one connection - in code.
Now I can make a connection via code as you kindly guided me in this thread
https://forum.curvyeditor.com/thread-644.html
SO i have multiple objects each with their own spline & I am trying to make the last segment (last visible control point) of each object be part of the connection with seg.
when the first object runs the code below it works fine, it's just when I try to run the script again with other objects that it doesn't work as intended. What happens is a separate connection is made & there is no follow on spline.
What I think I need to do is check if the control point has a connection (but don't know how)
then add a control point to that connection.
How could I do that please
So I make my connection like this :
Now I can make a connection via code as you kindly guided me in this thread
https://forum.curvyeditor.com/thread-644.html
SO i have multiple objects each with their own spline & I am trying to make the last segment (last visible control point) of each object be part of the connection with seg.
when the first object runs the code below it works fine, it's just when I try to run the script again with other objects that it doesn't work as intended. What happens is a separate connection is made & there is no follow on spline.
What I think I need to do is check if the control point has a connection (but don't know how)
then add a control point to that connection.
How could I do that please
So I make my connection like this :
Code:
CurvyConnection conn = CurvyConnection.Create ( spline_push.LastVisibleControlPoint,seg);