Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adjust radius of generated mesh via script?
#1
I have a scene with a lot of generators. I'd like to be able to quickly adjust the radius of all meshes via script (edit mode).
When I get the InputSplineShape component I can't find a way to access the Radius, even though in the inspector this is the component where I can adjust it.

Thanks!
Reply
#2
Hi

You can access the shape spline via InputSplineShape.Shape. You can then get the specific shape GetComponent<ShapeType>().
So in the case of the radius of a Circle:
InputSplineShape.Shape.GetComponent<CSCircle>().Radius

Did this help?
If and when you feel like it, please leave a review for the asset, that helps a lot.
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
  Replace deform mesh on volume spots Kokoriko49 1 270 06-09-2025, 06:49 PM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 1,049 02-14-2025, 07:11 AM
Last Post: vatan
  Create Mesh Node, Make Static Options rickgplus 1 544 01-23-2025, 10:12 AM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 924 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: