Hello, I’m adapting Jim Hamilton’s rack_and_pinion plugin to my needs.
(I’m not very good at understanding Ruby for SketchUp, but I try and sometimes succeed.)
The plugin doesn’t work if the decimal separator of the computer is “,” (in France for example).
The “.to_l” is the problem. I tried different things without success. Could you help me ?
The comma vs dot appears only when a length is formatted as a string, it has no meaning or existence in the length itself. I don’t know exactly what you are trying to do and don’t have time to dig through Jim’s code, but converting back and forth between strings and lengths is what you need to work on.
I’m not sure what the problem might be, but at the very end of the code is this bit that initializes the defaults. Try changing the decimals to commas in this part and see if that helps.