Hey. Regarding that error—it was actually a bug i...
# zenuv-chat
v
Hey. Regarding that error—it was actually a bug in the operator when called directly via script rather than from the UI panel. It has now been fixed and will be included in the next update. As for your script: the Unified Transform System https://zenmastersteam.github.io/Zen-UV/latest/transform_sys/unified_transform_sys/#unified-transform-system is designed for convenient manual operation from the panel. However, this makes it less ideal for scripting because it requires constantly toggling
bpy.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):