Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 4
0
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")
Ejemplo n.º 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")
Ejemplo n.º 6
0
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")
Ejemplo n.º 7
0
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")
Ejemplo n.º 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")
Ejemplo n.º 9
0
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")
Ejemplo n.º 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])
Ejemplo n.º 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")