Post #3410: The main purpose is to Stagger the Islands.

📋 Metadata

  • Author: Zelfor
  • Date: 2020-07-03 14:36:28
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_03408

🏷️ Tags

macro hotkeys advanced solved

  • Macro Editor
  • Pie Menu Editor
  • Python Scripting

💬 Content

The main purpose is to Stagger the Islands.

but with some conditions that avoid the linked selection:
image

If the user is on UV Sync
image

Macro:
image

Line1:

imageimage1164×125 17.8 KB

ts = C.scene.tool_settings; pp = ts.mesh.select_mode; ts.mesh.select_mode = mesh.select_mode(use_extend=False, use_expand=False, type=‘FACE’)

Line2:

imageimage1170×339 31.4 KB

bpy.ops.uv.select_linked_pick(extend=False)

Line3:

imageimage1170×796 82.1 KB

bpy.ops.transform.translate(remove_on_cancel=True, release_confirm=True)

Line4:

imageimage1172×130 11.6 KB

ts.mesh.select_mode = pp

All of the above is already implemented and working correctly! (your Add-On is WONDERFUL)

In addition to that and within the Mappinp UV Workflow
I would like to put the function “[Scale Individual Islands]”

Below is a sequence of functions that I can’t create …

with the following conditions:
1- Store Current Selection Mode;
2- Change to “Face Select”;
image
3- Store Current Pivot;
4- Change Pivot to “Individual Origins”;
image
5- Resize Islands;
UV>Transform>Resize
6- Return to Initial Selection Mode;
7- Return to the Initial Pivot;

image


I’ve made many attempts and this is the result I got.
But unfortunately it’s not working!
Is something wrong? Could you help me?

Thanks again for your attention

NOTE: I don’t speak English I used Google Translate


🔗 View on Blender Artists