I have, say, ten elements that can vary depending on the product the user selects. Using up/down arrows (booleans triggering events), I change the values in each of the elements up or down and maintain the same ratio (element 1 divided by sum of all elements, element 2 divided by the sum... , and so on). To acheive this, I pick some reference element, and each up or down will add or subtract one from this element. All the other elements will increase or decrease so as to maintain their original ratios. (These are actually streams in a pumping setup, and I want to increase or decrease the total stream, but keep the proportions constant.) There might be a way to do this on the entire cluster, but I need the option of changing each stream individually and keeping the others constant. I think Jason's idea of using references would work, using a for loop with indexing. I'll have to play with it.
Thanks for everyone's input. Eric -----Original Message----- From: Michael Aivaliotis [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 8:28 PM To: Eric Scott Cc: [EMAIL PROTECTED] Subject: RE: Programatically Changing Cluster Size > I want to programatically change the "cluster size" value in the > Array-to-Cluster function (when you right click and select > Cluster Size..). I have a cluster that I convert to an array, do > some number manipulation, and change back to a cluster. The > problem is I can't seem to find a way to automatically make the > number of elements in the cluster the same number as the array it > was just converted from > > Eric Scott What type of number manipulation are we talking about here? Many of the LV primitives are polymorphic. You can do math on the entire cluster without converting to array, as long as all the elements within the cluster are numerics. Michael Aivaliotis
