Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connections handling > change by code
#1
Hello, 
      So I've got a spline controller with Connections handling set to custom (I manually set it to this before runtime).
How could I change it from custom to follow up spline in code. 
I've tried 
Code:
mysplineController.ConnectionBehavior

but cant see any completions for follow on spline


Cheers
Reply
#2
Hi,
mysplineController.ConnectionBehavior = SplineControllerConnectionBehavior.FollowUpSpline is probably what you are looking for.
More about it in its API doc
https://api.curvyeditor.com/520/namespace_fluffy_underware_1_1_curvy_1_1_controllers.html#afa36b3535b3f55eab06f60dcac91f3bd
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Yes thats it thanks.

SO I've created my connection like this :

Code:
CurvyConnection conn = CurvyConnection.Create ( spline_push.LastVisibleControlPoint,seg);

Sorry for another question but I want the segment seg to be the follow up spline, how would I do that ?
Reply
#4
spline_push.LastVisibleControlPoint.SetFollowUp(seg, <optional parameter of type ConnectionHeadingEnum>)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Thanks that's great
Reply
#6
you are welcome
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Are connections pooled? Lupos 1 3 05-09-2023, 09:18 AM
Last Post: _Aka_
  How to merge intersecting meshes at spline connections? Reign_of_Light 2 4 03-20-2023, 08:36 AM
Last Post: Reign_of_Light
  Null Ref when using Connections RKTRAINS 1 2 10-10-2022, 08:49 AM
Last Post: _Aka_
  Permission to publish custom CGModule source code? Apelsin 6 9,422 09-15-2022, 08:53 PM
Last Post: Josaf Tom

Forum Jump: