11-29-2022, 06:07 PM
Hi aka,
thanks for the response and I have had a look and I am not really sure how to approach this but I will have a good go. So for a simple example, if I was going to create a new custom connection type that selected the next random control point from the connection list, I could just copy the block of code in your controller script HandleRandomConnectionBehavior() and place that into a new private function in a new ConnectedControlPointsSelector class script?
I notice that when I select "Custom" it also removes Allow direction change, Reject current spline, Reject divergent spline and Max Angle. Would I need to copy the code for these into the new script or are they still available to be used outside of the new script?
I am sorry to ask these additional questions but once I have a templated idea of how you would approach this then I can maybe work through what the custom connection logic will need to be to satisfy the requirement. My need is pretty straight forward, there is always a straight on spline or a junction spline to take depending on the state of E12_MD Junction Controller so I guess the list of connections and their position in the list will determine the selected spline? e.g 0 = existing spline (which will never be selected) , 1 = straight on spline and 2 = junction spline?
Anyway, thank you for the pointers.
D
thanks for the response and I have had a look and I am not really sure how to approach this but I will have a good go. So for a simple example, if I was going to create a new custom connection type that selected the next random control point from the connection list, I could just copy the block of code in your controller script HandleRandomConnectionBehavior() and place that into a new private function in a new ConnectedControlPointsSelector class script?
I notice that when I select "Custom" it also removes Allow direction change, Reject current spline, Reject divergent spline and Max Angle. Would I need to copy the code for these into the new script or are they still available to be used outside of the new script?
I am sorry to ask these additional questions but once I have a templated idea of how you would approach this then I can maybe work through what the custom connection logic will need to be to satisfy the requirement. My need is pretty straight forward, there is always a straight on spline or a junction spline to take depending on the state of E12_MD Junction Controller so I guess the list of connections and their position in the list will determine the selected spline? e.g 0 = existing spline (which will never be selected) , 1 = straight on spline and 2 = junction spline?
Anyway, thank you for the pointers.
D