Is it possible to drive the X-Size of a nested L1S generator beeing calculated via the splines XVertexAngle ?

Pages: [

**1**]If you can give us some more info or some example. It is difficult to understand what you are trying to achieve, but it is possible.

Use the slidebar to see the calculation work on the animated spline.

The "stacked" x-size and "roof inner corner" x-rotation are set by hand to the needed values. When wireing the calculation, no geometry is generated.

Any suggestions on this ?

My son knows math but he is not around so either we wait for Paul or you can do it yourself because I can see you know trigonometry.

1. Add one more Transform after Stacked->Transform25 and expose Y Fixed Rotation (you can delete conditional). This will control the angle for the RED line.

2. Know you need to calculate the angle for the RED LINE vs Base

keep in mind that trigonometry is calculated in Radians so you have to use DegToRad and RadToDeg in calculations

...you can delete conditional...

No, i want that geometry to appear just in certain angles.

...you need to calculate the angle for the RED LINE vs Base...

As i said, this anlge is already calculated correct in the green marked "angle".

But it is not working when wired....

In most cases the parameters for a generator cannot be controlled using generator attributes. Those values are interrogated just once before the generator builds. Since the X Angle of the corner is potentially different each time, it won't work. An exception is when a generator is nested. In this case you can use the attributes of the Generator to which the nested array is attached. In this example, I have changed it so that the length of the hips uses that approach.

To get the angle there's no need to use the generator's parameters, instead, you can use a Transform node to rotate the nested array.

I hope that helps,

Paul

Pages: [

**1**]