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
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mesh Generation between two splines vatan 4 189 02-14-2025, 07:11 AM
Last Post: vatan
  Create Mesh Node, Make Static Options rickgplus 1 123 01-23-2025, 10:12 AM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 122 01-02-2025, 09:58 AM
Last Post: _Aka_
  Is it possible to make the face at the end of mesh? Chanon 3 64 11-14-2024, 04:38 PM
Last Post: _Aka_

Forum Jump: