Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to calculate a weighted sum for several objects which have several aspects:
sum_for_object = weight_1*aspect_1 + weight_2*aspect_2 + ... + weight_n*aspect_n
My task is to make the weights in this summation editable, but always for the summation for every object, independent of any selection.
I declared the field for the weights as 'inputfield'. Now I get a separate value for, let's say, weight_1 for every object, these separate values are OK for me. When editing the value of weight_1 (inputfield), I want all the separate values of weight_1 to be updated for all objects, in order to have them all equal in the summations for every object.
Anyone has an idea? Thanks in advance!
Hi,
again, I may be overlooking your actual difficulty - but what about making the weight_factor(s) into (a) variable(s)?`
=> That way, whenever that variale is edited, it will be used for every object, no?
HTH
Best regards,
DataNibbler