Ok, I have changed my approach on this and getting closer to the result Im after, however I am having trouble with 1 thing which should solve a few other things. So we can ignore my previous question for now (Although still curious as to why it does not work on the X as well as the Y for the Sequence Expression)
Ill post up the entire resolution when this is complete for anyone else building Complex windows.
On to my next issue lol...
How do I reference the Y Position of the "Bottom" piece from another Array?
Essentially I want to use this as a base point for my Centre Mullion to then Offset the Y.
Example:
This is what I have tried so far...
The Centre Piece (in the red box) > Export Y Fixed Translation > Wire to Arithmetic >
return
YSplinePosition == 0
;I also tried
return
YSplineCoords.y == 0
;return
min (YSplinePosition, 0) + (-Input1)
;I also tried to Wire the Bottom Piece Y Translation to an arithmatic to wire its Translation into the Translation of the Top Piece of my other Array but it seems like the green dots are on the wrong side (more likely my brain is on the wrong side).
Really appreciate any advice as to how to wire this information across for translation purposes. Thanks!
Edit:I have looked through the manual pages and still cannot find reference to good examples using the Expressions - I would like to know how to use it like this:
If Y Fixed Translation = 0 then Place Object2 at 0
or Reference other objects in the node system such as:
If Object1 is located at Y Fixed Translation 0 then Place Object1 at Object 2 then Add Input1 (the Offset I have entered in a numeric/constant)
I know what I need but I cannot find reference to examples to do specific things as such. At this point I feel like im just completely guessing based on the Autodesk reference guide and information provided in the help docs which dont show many examples. I type in what I think should happen and most of the time, and it doesnt happen. For Example, I would think that adjusting an object's (Top Piece) YPadding based on the 0 Position of YSpline I would do something like this:
return
(YSplineCoords.y == 0)
;
However this does nothing? It says
OK in the box but does not move the
Top Piece to the Bottom of the YSpline? But when I move it manually using the padding units it does but I need this to be linked to the size of the Spline. I have read all the links you have provided so far Rokus and Im still having lots of trouble finding any examples on how to use the Operators.
Edit2:I have attached a new version which I think is almost there, Im just missing 1 component which will set the Initial Y Offset of the Generator
Btm Mullion to the Bottom Piece of Generator
Outside Frame, before I add the Offset I require Numerical Node
Y OffsetIm not sure how but any advice is helpful thank you!