Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DefaultEventhanlder and access all SplineSegment.FollowUp
#1
Hi,

I use a SplineController and my own DefaultEventHandler to move over a Connection. Additionally I want reconfigurate all CurvySegment.FollowUps based on this Connection inside of MY DefaultEventHandler.
It's a complete valid connection with of 3 Splines.
But it gets an error :    // Inaccessible accessor error

Code:
public static void UseFollowUpStatic(CurvySplineMoveEventArgs e) {
   if (e.Sender is SplineController && e.ControlPoint.Connection) {
   var mySplineSegment = e.ControlPoint;
   var othersSegments = e.ControlPoint.Connection.OtherControlPoints(mySplineSegment);
   int i = othersSegments.Count;  // i = 3;

   CurvySplineSegment seg = othersSegments[i-1];
   // cause an inaccessible accessor error
   seg.FollowUp = mySplineSegment;
}

How can I reconfigurate/access all SplineSegments.FollowUps of a connection inside of the DefaultEventHandler?
Thank you.

[Image: d.jpg]
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply
#2
Use CurvySplineSegment.SetFollowUp()!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  access to Path Range maruska 2 4,325 09-06-2016, 06:43 PM
Last Post: maruska
  Not able to access existing spline from custom script silonighora 2 5,622 12-04-2015, 07:34 PM
Last Post: Jake

Forum Jump: