Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manually controlling scale of each CP
#1
Hiya!

I've searched around the forum and found references to building your own modules to do this, but I'm in a little over my head to be honest so I'm not totally sure what to do.

Basically I want the Shape Extrusion module to use each Control Point's transform scale to set the scale of the mesh at that point in the path. I'm not sure where exactly I'm supposed to be creating this extra module or what to fill it with (still getting to grips with the system) - is this something that is doable now by default or does it still need a custom implementation?

Cheers! Love the asset by the way, it works so smoothly so far!

EDIT:

I have a sort of workable solution where I have made a subclass of the Shape Extrusion module and overridden the ScalingModule's `GetScale` method to then go through each control point, get their scale, and re-write the scaling curve with the results. However, to get this to work I had to edit some of the plugin's source code to expose variables etc that otherwise would not have been accessible or overridable - I assume there is a better way to do this without rewriting any asset code? I also had to edit the plugin to force a refresh when the scale of a Control Point is changed, as currently it was only triggered by the cached position or rotation changing.
Reply
#2
Hi
The idea is to do what you did, but without editing the code of Shape Extrusion. You can instead create a script that takes a reference to a Shape Extrusion module as a a parameter. Then the script would update the value of Shape Extrusion's scaling curve (module.ScaleMultiplierX) , and call the generator's Refresh method (module.Generator.Refresh(true)).
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  How could I manually set the bound? Chanon 1 8 09-17-2023, 10:11 AM
Last Post: _Aka_
  Scale Deform Mesh Along Spline? / aligning colliders MamasToast 9 71 10-31-2022, 03:44 AM
Last Post: tairoark
Video Scale Mesh at ControlPoints harshad 3 13 09-28-2022, 02:11 PM
Last Post: _Aka_
Bug Extrusion and scale curve issues Sacryn 3 15 04-08-2022, 12:30 PM
Last Post: _Aka_

Forum Jump: