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
  Can Deform Mesh shrink as well as stretch? davelloyd 1 3 Yesterday, 11:16 AM
Last Post: _Aka_
  Is it possible to make the face at the end of mesh? Chanon 3 6 11-14-2024, 04:38 PM
Last Post: _Aka_
  Mesh deform - baby guide jmh1804 7 12 08-22-2024, 07:18 AM
Last Post: _Aka_
  How to modify Input GameObject's transformation properties by script. j95677 2 7 07-05-2024, 06:28 PM
Last Post: j95677

Forum Jump: