Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Volume Mesh UV
#11
(03-13-2020, 11:23 PM)_Aka_ Wrote: Only Input Spline Path module (and its Shape equivalent) have a reference to a spline. It transforms it to a Path (in code CGPath), and that is what is used in the remaining of the generator.
Each CG module has a reference to its input and output modules, see Input and Output lists

Yup, I know but I don't know how to access to the pre module. I don't find the accessor.
Reply
#12
Go through the Input list, find the right link, access its module, and then repeat until you reach the right module. The code depends on your graph
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#13
(03-14-2020, 01:55 PM)_Aka_ Wrote: Go through the Input list, find the right link, access its module, and then repeat until you reach the right module. The code depends on your graph

Please tell me functions and properties which I should call. I try almost everything but I can't navigate on modules.
Reply
#14
Anything ?
Reply
#15
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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Mesh problem in generator after rotating control points ATHellboy 1 213 02-10-2020, 11:24 AM
Last Post: _Aka_
  Some times mesh distortion. mammuoils1 5 607 12-24-2019, 05:40 PM
Last Post: _Aka_
  Deform mesh on the spline Nico_CL 3 815 10-09-2019, 04:10 PM
Last Post: _Aka_
  Extrude custom mesh along a path CesarGenera 3 749 09-19-2019, 04:47 PM
Last Post: _Aka_

Forum Jump: