I think you are misunderstanding what min and max mean in this context. The token at the end of setattib() functions determines how the value is recorded.
the normal way, ‘set’, replaces the existing value with the new one. 'multiply', ‘min’, ‘max’, ‘add’, etc perform that operation to combine the existing value with the new one.
For example, if you set the values of ‘P’, to {1.0,1.0,1.0} with a min operation, all the points left of 1.0, below 1.0 and behind 1.0 units from the origin will be unchanged, the rest will be set to 1.0.
In your examples, I presume the attribute named ‘min’ and ‘max’ do not yet exist. When performing a ‘min’ or ‘max’ operation, the existing values are assumed to be 0, and the operation uses 0 as the first operand and your new value as the second.
There are other functions called min() and max() that work on vectors or arrays to return the highest value or lowest value contained therein.
okay, does that mean to normalise the min, max values of the @speed attribute, in the example, then I need to use an attribute promote Sop? Would prefer a vex solution if possible.
goat okay, does that mean to normalise the min, max values of the @speed attribute, in the example, then I need to use an attribute promote Sop? Would prefer a vex solution if possible.
just make sure your speed_min default is a big number you can either initialize it before or if you need in the same wrangle you can use adddetailattrib()