New answers tagged

0

The keyword you need is SEQUENCER_MT_context_menu. def menu_func(self, context): self.layout.operator(ScriptClassNameHere.bl_idname) def register(): bpy.utils.register_class(ScriptClassNameHere) bpy.types.SEQUENCER_MT_context_menu.append(menu_func) def unregister(): bpy.types.SEQUENCER_MT_context_menu.remove(menu_func) bpy.utils....


1

I think I've solved it! This script can do that... it's using clipboard data. class Nudge_plus_small(bpy.types.Operator): """This will increase property value""" bl_idname = "object.nudge_plus_small" bl_label = "Increment value +0.01 " bl_options = {'REGISTER', 'UNDO'} def execute(self, ...


1

The operators are object oriented, meaning which contexts are valid for an operator and what they ultimately do is left up to each specific operator. In practice it seems like they have the same effect as passing a context object, or setting the operator_context value -- to change where in the UI the operator is effected. The context values can be understood ...


7

Window manager. As the name suggests Window manager data-block defining open windows and other user interface data The one instance of the window manager >>> wm = C.window_manager Like objects, meshes, cameras the window manager is a subclass of bpy.types.ID and hence can be used to store ID properties. >>> issubclass(bpy.types....


Top 50 recent answers are included