02-25-2016, 02:21 AM
(This post was last modified: 02-26-2016, 04:44 AM by Trainzland.)
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
How can I reconfigurate/access all SplineSegments.FollowUps of a connection inside of the DefaultEventHandler?
Thank you.
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.
(Henry Ford) Each hour more of searching is each hour less of your live time.