Hi Blender coders,
I would like to create some custom pie menus for Transform Orientation and Pivot Point, but it doesn’t make sense yet for me.
One of the command I’m looking for seems to be this one :
bpy.context.scene.tool_settings.transform_pivot_point = 'CURSOR'
So for my pie menu I would write it like this :
pie.operator("tool_settings.transform_pivot_point", value = 'CURSOR') pie.operator("tool_settings.transform_pivot_point", value = 'MEDIAN_POINTS') pie.operator("scene.type", value = 'LOCAL')
It doesn’t work. I don’t understand yet the logic behind commands in Blender. I guess it doesn’t work because it triggers a scene or context state and not an operator.
Coming from Modo ( where command creation is really easy but less powerful ultimately ), it’s hard to wrap my head around this and googling for hints haven’t really helped me, neither digging in Blender own pie menus .py files.
How to write the right way this kind of command ?