-
Xpresso math issue
I’m working on an Xpresso program to fit x number of slats within a frame. As the frame dimensions are changed, the spacing between slats is kept uniform. As the number of slats or their width changes, likewise the spacing between them remains uniform. I’ve got it almost there but notice a problem with the math derived from the two formula’s in place. First, it I keep it to whole numbers things are almost perfect. There is a .015″ shift to the left of the slat members in the frame. But for that it would be perfect.
Second, if I venture into using float values, say making a slat width of 1.375″, the shift within the frame takes on that error, plus the initial .015″ error. It’s quite predictable it seems even though I’ve checked all values are floats (except slat count) and I’ve dialed in step values where possible in the .001 range to aid precision.I’m hoping someone can shed some light on why this is happening. I admit, I’ve looked at this problem for way too long to be objective anymore and have no further insight as to what in the heck is going on.
I trust it’s OK to link to the scene file:
https://copy.com/Cqoil7PYxSdDeg0Y
Any and all ideas are welcome!