Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Volume Mesh UV
#16
(03-18-2020, 11:36 PM)_Aka_ Wrote: BuildShapeExtrusion buildShapeExtrusion = (BuildVolumeMesh.Input[0].LinkedSlots[0].Module as BuildShapeExtrusion);
InputSplinePath inputSplinePath = (buildShapeExtrusion.Input[0].LinkedSlots[0].Module as InputSplinePath);
then
inputSplinePath .Spline

An alternative is
BuildShapeExtrusion buildShapeExtrusion = (BuildVolumeMesh.InVolume.LinkedSlots[0].Module as BuildShapeExtrusion);
InputSplinePath inputSplinePath = (buildShapeExtrusion.InPath.LinkedSlots[0].Module as InputSplinePath);

Have a nice day

I use the same approach but from beginning buildVolumeMesh.InVolume.LinkedSlots.Count is 0.
I call it in OnEnable and maybe the problem is because of this ?

https://gyazo.com/c60265eebfada6e1a591b096f1e66410

Edit: Yup, I should call after Generator initialization.
Reply


Messages In This Thread
Changing Volume Mesh UV - by ATHellboy - 02-19-2020, 10:42 AM
RE: Changing Volume Mesh UV - by _Aka_ - 02-20-2020, 01:25 AM
RE: Changing Volume Mesh UV - by ATHellboy - 02-20-2020, 05:43 AM
RE: Changing Volume Mesh UV - by ATHellboy - 03-02-2020, 08:05 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-08-2020, 01:55 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-08-2020, 02:19 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-10-2020, 01:34 PM
RE: Changing Volume Mesh UV - by _Aka_ - 03-10-2020, 10:37 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-11-2020, 05:46 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-13-2020, 11:23 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-14-2020, 08:17 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-14-2020, 01:55 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-14-2020, 05:04 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-17-2020, 10:51 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-18-2020, 11:36 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-19-2020, 05:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Accessing generator's input spline in script, changing it at runtime smackledorf 3 296 06-17-2021, 01:59 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 466 06-09-2021, 12:42 PM
Last Post: _Aka_
  Disabled mesh generation until a certain number of CPs are added. boriskourt 1 226 05-02-2021, 10:02 AM
Last Post: _Aka_
  How to change the mesh inside the generator elitegorgong 5 732 04-03-2021, 04:53 PM
Last Post: _Aka_

Forum Jump: