valeriyyatsenko
09/29/2026, 12:06 PMbpy.context.scene.zen_uv.tr_mode (Transform Mode).
Instead, I suggest using transform operators that don't depend on global variables. This will make scripting much simpler and cleaner. You can find these operators in the Advanced Transforms sub-panel:
https://zenmastersteam.github.io/Zen-UV/latest/transform_sys/advanced_operators/
Using this approach, your script snippet can be simplified to the following (in this example, I used the Scale By Axis operator):