📋 Metadata
- Author: roaoao
- Date: 2017-04-18 08:14:42
- Type:
answer - Reply to: post_00621
- Replies (1): post_00623
💬 Content
shogunato:
I would love to put the sticky selection mode from uv editor into my pie menu. I tried to put a stack key menu with all 3 mode inside with the aim to toggle between those mode. Any idea what is wrong with the code ?
Blender generates wrong code in UV Editor for some reason.
You need to replace bpy.data.screens[“Default”].(null) with this (Command tab):
bpy.context.space_data.uv_editor.sticky_select_mode
There are some other buttons in UV Editor which generate wrong code.
To fix it use this code:
bpy.context.space_data.uv_editor.<PROPERTY_NAME>
You can find property’s name in tooltips. For example the name of Constraint to Image Bounds property is lock_bounds :

I’ll try to fix this issue in Blender 2.79.