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
⚙️ Related PME Features
- 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:

If the user is on UV Sync

Macro:

…
Line1:
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:
bpy.ops.uv.select_linked_pick(extend=False)
…
Line3:
bpy.ops.transform.translate(remove_on_cancel=True, release_confirm=True)
…
Line4:
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”;

3- Store Current Pivot;
4- Change Pivot to “Individual Origins”;

5- Resize Islands;
UV>Transform>Resize
6- Return to Initial Selection Mode;
7- Return to the Initial Pivot;

…
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
image1164×125 17.8 KB
image1170×339 31.4 KB
image1170×796 82.1 KB
image1172×130 11.6 KB