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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#5
(06-27-2019, 12:41 PM)_Aka_ Wrote: All what you need is in here
https://api.curvyeditor.com/520/class_fl...ab82445b72
and here
https://docs.unity3d.com/ScriptReference...Curve.html

Is it possible that we can get an option to set scale based on the local scale of the path nodes?
Reply
#6
(11-02-2019, 11:34 PM)Janooba Wrote:
(06-27-2019, 12:41 PM)_Aka_ Wrote: All what you need is in here
https://api.curvyeditor.com/520/class_fl...ab82445b72
and here
https://docs.unity3d.com/ScriptReference...Curve.html

Is it possible that we can get an option to set scale based on the local scale of the path nodes?

Hi,

There is no ready made feature to set the extrusion scale to the same value as the control points (a.k.a path nodes) scale, but you can easily do it: make a script that will read the local scale of each control point's and then modify the ScaleMultiplier curves accordingly. The quoted links have the needed documentation to do that.

Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Filling a closed spline dynamically rickgplus 1 51 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 189 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 698 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 320 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: