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 can't thank you enough for your help with this. It works beautifully and the transform formula is an eye opener. I was certain I had to include the first space (or P. X) in the formula for some reason.
To get the cloner back to zero, entering zero in the coordinate manager was all it took? This may seem a silly question but I only have a handful of hours logged in C4D.
yes, it's just entering 0 in the coordinate manager. That's always possible (unless you are driving a value with an xpresso or have the value locked with a Protect tag) so you can put in any value you want without having to move the object around in the viewport when some values are hard to hit exactly