Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Same Spline Extrusion with variable width
#1
Dear members of CurvySpline forum.

Is it possible to create, by code, a spline extrusion with variable width? If so, can somebody point me in the right direction? I have not been able to find a proper answer for it.  I know is possible to change the overall width of the whole spline, but I wonder how could I have different width parameters using the same spline. (I would like to avoid creating different splines for each section with different width).

[Image: 8u2yM2g.png]

Thanks in advance for your time.

Kind Regards
MarioB
Reply
#2
Hi,
There is a Tab called Scale in the Shape Extrusion module:
https://curvyeditor.com/documentation/ge...sion#scale
Inside of it, you can set up a variable scale by setting Mode to Advance
Let me know if this isn't what you were looking for.
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
(06-25-2019, 10:23 AM)_Aka_ Wrote: Hi,
There is a Tab called Scale in the Shape Extrusion module:
https://curvyeditor.com/documentation/ge...sion#scale
Inside of it, you can set up a variable scale by setting Mode to Advance
Let me know if this isn't what you were looking for.
Have a nice day


Hey Aka, yes that is what I needed.  I know just need to find a way to modify the curve by code to accommodate a width from input.

Thanks for your time
Cheers,
Mario
Reply
#4
All what you need is in here
https://api.curvyeditor.com/520/class_fl...ab82445b72
and here
https://docs.unity3d.com/ScriptReference...Curve.html
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
  Deform mesh on the spline Nico_CL 3 104 10-09-2019, 04:10 PM
Last Post: _Aka_
  UV issue with variable mix shape modifier MarioBag 1 78 09-24-2019, 03:51 PM
Last Post: _Aka_
  Best practice for mass-object instancing along 100km spline (railways) plus streaming bs@vectorvision.de 10 508 09-24-2019, 03:42 PM
Last Post: _Aka_
  Invert the spline points ? UsernameHed 1 97 09-21-2019, 03:22 PM
Last Post: _Aka_

Forum Jump: