Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shapes points orientation
#1
Hi,
I'd like to know if there is a way to change the orientation of a spline that was generated using the Shapes components (Rounded Square, Circle, etc...)

Currently I can set them on the plane I want but the spline points are not necessarily oriented as I wish.
For instance :

Here the circle shape on the correct plane but with the wrong orientation:
[Image: bXmg6HH.png]

And here is the orientation I need:
[Image: F0ZES26.png]

Like I did for the second screenshot, I can easily fix it by manualy rotating the points but this is not very iteration friendly and sometimes the shape get refreshed and I loose the changes.

I wish to know if there is a way or a plan to fix  this issue ?

Thanks Smile
Reply
#2
Hi
The reason you loose changes is that the Shape's script updates the associated spline, overriding your changes. Disabling the script should avoid this issue.
Besides manually rotating the points, the solution I see is to modify the Shape's code. The method to check is ApplyShape(). You will see that the CPs' position is set in that method, you can set the rotations too.
Did this help?
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
Hi,
Indeed it helps. I was going to eventually change the code but I thought it would be a nice option to have by default.

Thanks for the fast answer!
Have a great day
Reply
#4
You are welcome. I take note of your suggestion, I might implement it in the future.
Thanks and have a great day too
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
Video How do I merge splines only if some control points are at the sam position? arcade.autumn 3 8 Yesterday, 01:40 PM
Last Post: _Aka_
  Input Spline Shapes from Prefabs destroys graph tairoark 5 6 11-24-2022, 05:08 PM
Last Post: _Aka_
  2d - orientation looping_co 1 3 09-01-2022, 04:17 PM
Last Post: _Aka_
  Closed splines and duplicate points jh092 3 6 07-24-2022, 01:54 PM
Last Post: _Aka_

Forum Jump: