Пример #1
0
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register("zdepthchannel",
                      "howtos",
                      zdepthchannel,
                      menu=["&Scripting", "Python3 Development", "How To"],
                      text="Access the Z-Depth Channel",
                      tooltip="Access the Z-Depth Channel")
Пример #2
0
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register("quickpreview",
                      "howtos",
                      quickpreview,
                      menu=["&Scripting", "Python3 Development", "How To"],
                      text="Create a quick preview",
                      tooltip="Create a quick preview")
Пример #3
0
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register("reloadmod",
                      "python3devtools",
                      python_reload,
                      menu=["&Scripting", "Python3 Development"],
                      text="Reload Python Modules",
                      tooltip="Reload Python Modules")
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register("removeallmaterials",
                      "howtos",
                      remove_all_materials,
                      menu=["&Scripting", "Python3 Development", "How To"],
                      text="Remove all materials from the scene",
                      tooltip="Remove all materials from the scene")
Пример #5
0
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register("renameselected",
                      "howtos",
                      showdialog,
                      menu=["&Scripting", "Python3 Development", "How To"],
                      text="Rename all elements in selection",
                      tooltip="renameselected sample")
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register(
        "threadprogressbar",
        "howtos",
        threadprogressbar,
        menu=["&Scripting", "Python3 Development", "Other Samples"],
        text="Update a progress bar from a thread",
        tooltip="Update a progress bar from a thread")
def startup():
    """
    Hook the transform lock function to a menu item.
    """
    menuhook.register(
        "transformlock",
        "howtos",
        lock_selection,
        menu=["&Scripting", "Python3 Development", "How To"],
        text="Lock transformations for the selection",
        tooltip="Lock transformations for the selection")
Пример #8
0
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register(
        "singleinstancedlg",
        "howtos",
        singleinstancedlg,
        menu=["&Scripting", "Python3 Development", "Other Samples"],
        text="Single instance modeless dialog",
        tooltip="Single instance modeless dialog")
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register(
        "speedsheet",
        "howtos",
        speedsheet,
        menu=["&Scripting", "Python3 Development", "How To"],
        text="Output Object Data to File",
        tooltip="Output Object Data to File")
Пример #10
0
def startup():
    """
    Hook the function to a menu item.
    """
    for topic in TOPICS:
        menuhook.register(
            f"inbrowserhelp_{topic[0]}",
            "howtos",
            lambda topic=topic: webbrowser.open(f"https://{topic[2]}"),
            MENU_LOCATION,
            text=topic[1],
            tooltip=topic[1])
Пример #11
0
def startup():
    """
    Hook the function to a menu item.
    """
    menuhook.register("pyconsole",
                      "howtos",
                      pyconsole,
                      menu=["&Scripting", "Python3 Development", "How To"],
                      text="Python Console",
                      tooltip="Python Console")
    # Create a python console in the command panel
    # automatically
    console.new_console(tabto="CommandPanel")