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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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
  Replace deform mesh on volume spots Kokoriko49 1 2,137 06-09-2025, 06:49 PM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 3,284 02-14-2025, 07:11 AM
Last Post: vatan
  Create Mesh Node, Make Static Options rickgplus 1 1,677 01-23-2025, 10:12 AM
Last Post: _Aka_
Photo Volume Spots problem with spacing Bond007 3 2,293 01-20-2025, 12:27 PM
Last Post: _Aka_

Forum Jump: