How to pack UV without changing texel?


Hi gays!
I do UV unwrapping with the same texel
The PackTogether button in the Edit UVWs window works great.
But when I do it through a script, something like

uv.pack 1 0.002 false false false

Appears the difference in texel size between faces.
Not much, but there is a difference

Thanks in advance


How can the PackTogether button be pressed through a script?
And set the padding